Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001401/0.001401, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.4/1.4, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008673/0.0008673, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.962e-05, allocations: 4 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08069/0.08074, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2626/0.3434, allocations: 78.07 MB / 448.2 MB, free: 14.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.3436, allocations: 74.7 kB / 448.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0171/0.3608, allocations: 7.108 MB / 455.4 MB, free: 8.926 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3608, allocations: 0 / 455.4 MB, free: 8.926 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.3608, allocations: 4 kB / 455.4 MB, free: 8.922 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007754/0.3616, allocations: 0.5928 MB / 456 MB, free: 8.285 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3617, allocations: 8.031 kB / 456 MB, free: 8.277 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.054e-05/0.3617, allocations: 61.53 kB / 456 MB, free: 8.219 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.558e-05/0.3618, allocations: 27.62 kB / 456.1 MB, free: 8.191 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.3622, allocations: 262.5 kB / 456.3 MB, free: 7.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.737e-05/0.3623, allocations: 48.89 kB / 456.4 MB, free: 7.863 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.544e-05/0.3623, allocations: 15.5 kB / 456.4 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000371/0.3627, allocations: 226 kB / 456.6 MB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.3627, allocations: 0 / 456.6 MB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.777e-05/0.3627, allocations: 11.67 kB / 456.6 MB, free: 7.676 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.3628, allocations: 4 kB / 456.6 MB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/0.363, allocations: 161.7 kB / 456.8 MB, free: 7.566 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.3644, allocations: 0.7664 MB / 457.5 MB, free: 6.859 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003621/0.3647, allocations: 259.3 kB / 457.8 MB, free: 6.676 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002687/0.365, allocations: 206.7 kB / 458 MB, free: 6.539 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.3651, allocations: 7.938 kB / 458 MB, free: 6.531 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003838/0.3655, allocations: 296.5 kB / 458.3 MB, free: 6.258 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 1.463e-06/0.3655, allocations: 3.938 kB / 458.3 MB, free: 6.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005816/0.3661, allocations: 392.4 kB / 458.7 MB, free: 5.887 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/0.3662, allocations: 225.6 kB / 458.9 MB, free: 5.617 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.3663, allocations: 173.5 kB / 459.1 MB, free: 5.441 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.3664, allocations: 37.69 kB / 459.1 MB, free: 5.398 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.194e-05/0.3665, allocations: 136.4 kB / 459.2 MB, free: 5.262 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.3665, allocations: 79.05 kB / 459.3 MB, free: 5.184 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.3666, allocations: 4 kB / 459.3 MB, free: 5.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3667, allocations: 334.8 kB / 459.6 MB, free: 4.844 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.3668, allocations: 92.69 kB / 459.7 MB, free: 4.746 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.367, allocations: 163.9 kB / 459.9 MB, free: 4.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002134/0.3673, allocations: 193.8 kB / 460.1 MB, free: 4.355 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3673, allocations: 0 / 460.1 MB, free: 4.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005233/0.3678, allocations: 419.8 kB / 460.5 MB, free: 3.922 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.699e-05/0.3679, allocations: 101 kB / 460.6 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.3679, allocations: 0 / 460.6 MB, free: 3.805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.3679, allocations: 4 kB / 460.6 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.3681, allocations: 35.92 kB / 460.6 MB, free: 3.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.3682, allocations: 7.984 kB / 460.6 MB, free: 3.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.3684, allocations: 36.2 kB / 460.7 MB, free: 3.723 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.3684, allocations: 12 kB / 460.7 MB, free: 3.711 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.trig,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001719/0.3686, allocations: 219.3 kB / 460.9 MB, free: 3.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.219e-05/0.3686, allocations: 23.81 kB / 460.9 MB, free: 3.453 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.037e-05/0.3687, allocations: 22.73 kB / 460.9 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.3687, allocations: 4 kB / 460.9 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3687, allocations: 3.984 kB / 461 MB, free: 3.422 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.3687, allocations: 11.92 kB / 461 MB, free: 3.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001091/0.3698, allocations: 0.9598 MB / 461.9 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3698, allocations: 0 / 461.9 MB, free: 2.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.3699, allocations: 24.02 kB / 461.9 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.37, allocations: 0 / 461.9 MB, free: 2.355 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.37, allocations: 15.98 kB / 462 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-05/0.37, allocations: 3.984 kB / 462 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.37, allocations: 0 / 462 MB, free: 2.336 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006452/0.3707, allocations: 0.5688 MB / 462.5 MB, free: 1.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.608e-05/0.3707, allocations: 100.8 kB / 462.6 MB, free: 1.613 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.647e-05/0.3708, allocations: 19.98 kB / 462.7 MB, free: 1.594 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/0.371, allocations: 23.98 kB / 462.7 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.418e-05/0.3711, allocations: 19.97 kB / 462.7 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.889e-05/0.3712, allocations: 19.94 kB / 462.7 MB, free: 1.531 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001026/0.3713, allocations: 131.2 kB / 462.8 MB, free: 1.402 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3713, allocations: 0 / 462.8 MB, free: 1.402 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003136/0.3716, allocations: 83.84 kB / 462.9 MB, free: 1.32 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.trig,aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009826/0.3726, allocations: 1.214 MB / 464.1 MB, free: 64 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005768/0.3732, allocations: 0.503 MB / 464.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3732, allocations: 0 / 464.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003316/0.3735, allocations: 370.6 kB / 465 MB, free: 15.13 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005855/0.3741, allocations: 118.2 kB / 465.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009051/0.375, allocations: 441.5 kB / 465.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/0.3754, allocations: 0.7564 MB / 466.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001551/0.3755, allocations: 58.38 kB / 466.4 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001078/0.3757, allocations: 63.41 kB / 466.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of SimCode: time 4.4e-07/0.3757, allocations: 0 / 466.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01658/0.3922, allocations: 5.849 MB / 472.3 MB, free: 7.789 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/0.3924, allocations: 159.3 kB / 472.4 MB, free: 7.562 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/2.036, allocations: 0 / 472.4 MB, free: 7.562 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat