Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 221.5 MB / 230.3 MB, free: 7.492 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008701/0.0008701, allocations: 98.17 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.847e-05/1.849e-05, allocations: 4 kB / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 50.41 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3356/0.4441, allocations: 78.78 MB / 466.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.4444, allocations: 71.95 kB / 466.4 MB, free: 15.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01868/0.4631, allocations: 7.204 MB / 473.6 MB, free: 8.672 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.4631, allocations: 192 / 473.6 MB, free: 8.672 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.655e-05/0.4632, allocations: 8 kB / 473.6 MB, free: 8.664 MB / 346.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.0007622/0.4639, allocations: 0.5985 MB / 474.2 MB, free: 8.004 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.464, allocations: 8.031 kB / 474.2 MB, free: 7.996 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.478e-05/0.4641, allocations: 27.72 kB / 474.2 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003871/0.4645, allocations: 243.3 kB / 474.5 MB, free: 7.688 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.968e-05/0.4645, allocations: 53.62 kB / 474.5 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.617e-05/0.4646, allocations: 12 kB / 474.5 MB, free: 7.617 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003052/0.4649, allocations: 156.4 kB / 474.7 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.4652, allocations: 204 kB / 474.9 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.4653, allocations: 0 / 474.9 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.373e-05/0.4653, allocations: 0 / 474.9 MB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.4653, allocations: 11.98 kB / 474.9 MB, free: 7.25 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.4666, allocations: 0.7175 MB / 475.6 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.4669, allocations: 243.7 kB / 475.9 MB, free: 6.23 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002655/0.4672, allocations: 193.4 kB / 476.1 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.4672, allocations: 4 kB / 476.1 MB, free: 6.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003591/0.4676, allocations: 297.9 kB / 476.4 MB, free: 5.711 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 1.843e-06/0.4676, allocations: 0 / 476.4 MB, free: 5.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005297/0.4681, allocations: 313.8 kB / 476.7 MB, free: 5.398 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.4683, allocations: 229.5 kB / 476.9 MB, free: 5.125 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.4684, allocations: 154.6 kB / 477 MB, free: 4.969 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.4684, allocations: 33.7 kB / 477.1 MB, free: 4.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.108e-05/0.4685, allocations: 136.4 kB / 477.2 MB, free: 4.793 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.751e-05/0.4686, allocations: 71.08 kB / 477.3 MB, free: 4.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.297e-05/0.4686, allocations: 4.031 kB / 477.3 MB, free: 4.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4688, allocations: 338.8 kB / 477.6 MB, free: 4.379 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.4689, allocations: 92.55 kB / 477.7 MB, free: 4.281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.4691, allocations: 143.9 kB / 477.8 MB, free: 4.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001691/0.4693, allocations: 113 kB / 477.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4693, allocations: 0 / 477.9 MB, free: 4.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004309/0.4698, allocations: 293.5 kB / 478.2 MB, free: 3.719 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.632e-05/0.4698, allocations: 97.09 kB / 478.3 MB, free: 3.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.4699, allocations: 3.984 kB / 478.3 MB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.4699, allocations: 4 kB / 478.3 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.4701, allocations: 40.05 kB / 478.4 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.4701, allocations: 7.938 kB / 478.4 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001917/0.4703, allocations: 23.92 kB / 478.4 MB, free: 3.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.4703, allocations: 12 kB / 478.4 MB, free: 3.516 MB / 346.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.0001856/0.4705, allocations: 215.3 kB / 478.6 MB, free: 3.285 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004921/0.471, allocations: 345.3 kB / 479 MB, free: 2.941 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.962e-05/0.4711, allocations: 23.8 kB / 479 MB, free: 2.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.779e-05/0.4711, allocations: 27.39 kB / 479 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.4712, allocations: 3.938 kB / 479 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4712, allocations: 7.953 kB / 479 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.4712, allocations: 192 / 479 MB, free: 2.879 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009343/0.4721, allocations: 0.7879 MB / 479.8 MB, free: 2.043 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4721, allocations: 11.89 kB / 479.8 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001166/0.4723, allocations: 23.98 kB / 479.8 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.4723, allocations: 0 / 479.8 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.4723, allocations: 7.984 kB / 479.9 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.4723, allocations: 4 kB / 479.9 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.512e-06/0.4723, allocations: 8.016 kB / 479.9 MB, free: 1.988 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005742/0.4729, allocations: 470.6 kB / 480.3 MB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.746e-05/0.473, allocations: 96.92 kB / 480.4 MB, free: 1.391 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.049e-05/0.473, allocations: 11.98 kB / 480.4 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.4733, allocations: 23.98 kB / 480.5 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.949e-05/0.4734, allocations: 23.97 kB / 480.5 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.848e-05/0.4734, allocations: 19.97 kB / 480.5 MB, free: 1.312 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.369e-05/0.4735, allocations: 123.3 kB / 480.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4735, allocations: 0 / 480.6 MB, free: 1.191 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003489/0.4739, allocations: 67.84 kB / 480.7 MB, free: 1.125 MB / 346.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.0008772/0.4747, allocations: 1.094 MB / 481.8 MB, free: 0 / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005414/0.4753, allocations: 486 kB / 482.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4753, allocations: 4.188 kB / 482.3 MB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.4756, allocations: 366.7 kB / 482.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006396/0.4763, allocations: 117.3 kB / 482.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009269/0.4772, allocations: 412.7 kB / 483.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.4775, allocations: 0.7526 MB / 483.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001508/0.4777, allocations: 54 kB / 483.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000103/0.4778, allocations: 67.42 kB / 484 MB, free: 13.65 MB / 362.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4778, allocations: 0 / 484 MB, free: 13.65 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02669/0.5045, allocations: 5.414 MB / 489.4 MB, free: 8.301 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002554/0.5049, allocations: 144.6 kB / 489.6 MB, free: 8.105 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.677/2.182, allocations: 0 / 489.6 MB, free: 8.105 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat does not exist to compare? outputFormat=mat