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.001281/0.001281, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008934/0.0008933, allocations: 97.95 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002773, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3123, allocations: 50.41 MB / 401.6 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1085/0.4209, allocations: 79.51 MB / 481.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.4213, allocations: 67.97 kB / 481.2 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01871/0.44, allocations: 7.254 MB / 488.4 MB, free: 9.504 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.44, allocations: 0 / 488.4 MB, free: 9.504 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.02e-05/0.4401, allocations: 8 kB / 488.4 MB, free: 9.496 MB / 362.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.001058/0.4411, allocations: 0.6097 MB / 489 MB, free: 8.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/0.4412, allocations: 15.97 kB / 489 MB, free: 8.805 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.4413, allocations: 54.55 kB / 489.1 MB, free: 8.742 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.495e-05/0.4414, allocations: 27.72 kB / 489.1 MB, free: 8.715 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004733/0.4419, allocations: 257 kB / 489.4 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.262e-05/0.442, allocations: 45.7 kB / 489.4 MB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.886e-05/0.4421, allocations: 27.95 kB / 489.4 MB, free: 8.344 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006006/0.4427, allocations: 267.9 kB / 489.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.4427, allocations: 0 / 489.7 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.4427, allocations: 8 kB / 489.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.4427, allocations: 4 kB / 489.7 MB, free: 8.066 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.4433, allocations: 216.3 kB / 489.9 MB, free: 7.855 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001516/0.4448, allocations: 0.7643 MB / 490.7 MB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006154/0.4454, allocations: 306.5 kB / 491 MB, free: 6.719 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.4455, allocations: 4 kB / 491 MB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005637/0.446, allocations: 333.8 kB / 491.3 MB, free: 6.359 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/0.4461, allocations: 0 / 491.3 MB, free: 6.359 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.001399/0.4475, allocations: 0.7582 MB / 492.1 MB, free: 5.547 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.4476, allocations: 203.9 kB / 492.3 MB, free: 5.305 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001782/0.4478, allocations: 158.2 kB / 492.4 MB, free: 5.145 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.416e-05/0.4479, allocations: 37.7 kB / 492.5 MB, free: 5.102 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.448, allocations: 132.8 kB / 492.6 MB, free: 4.969 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.31e-05/0.4481, allocations: 82.98 kB / 492.7 MB, free: 4.887 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/0.4481, allocations: 8 kB / 492.7 MB, free: 4.879 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.4483, allocations: 338.9 kB / 493 MB, free: 4.539 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.4486, allocations: 112.6 kB / 493.1 MB, free: 4.422 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003036/0.4489, allocations: 186.6 kB / 493.3 MB, free: 4.223 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003348/0.4492, allocations: 217.8 kB / 493.5 MB, free: 3.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4492, allocations: 0 / 493.5 MB, free: 3.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007337/0.45, allocations: 470.8 kB / 494 MB, free: 3.508 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.781e-05/0.4501, allocations: 89.09 kB / 494.1 MB, free: 3.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.4501, allocations: 4 kB / 494.1 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.413e-05/0.4501, allocations: 7.922 kB / 494.1 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.4503, allocations: 43.91 kB / 494.1 MB, free: 3.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.4504, allocations: 4 kB / 494.1 MB, free: 3.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.4506, allocations: 31.92 kB / 494.2 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.115e-05/0.4506, allocations: 16 kB / 494.2 MB, free: 3.297 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 () * Number of clocked 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.000301/0.4509, allocations: 238.6 kB / 494.4 MB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.208e-05/0.451, allocations: 19.81 kB / 494.4 MB, free: 3.027 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.235e-05/0.4511, allocations: 22.66 kB / 494.5 MB, free: 3 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.4511, allocations: 4 kB / 494.5 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.4511, allocations: 7.984 kB / 494.5 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.4511, allocations: 0 / 494.5 MB, free: 2.988 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.4525, allocations: 0.9046 MB / 495.4 MB, free: 2.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.4525, allocations: 0 / 495.4 MB, free: 2.016 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.4526, allocations: 23.92 kB / 495.4 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.4526, allocations: 0 / 495.4 MB, free: 1.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.4527, allocations: 12 kB / 495.4 MB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.4527, allocations: 4 kB / 495.4 MB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.4527, allocations: 0 / 495.4 MB, free: 1.977 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009626/0.4537, allocations: 0.6234 MB / 496 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.377e-05/0.4538, allocations: 96.83 kB / 496.1 MB, free: 1.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.437e-05/0.4538, allocations: 19.98 kB / 496.1 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002272/0.4541, allocations: 23.98 kB / 496.2 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.202e-05/0.4542, allocations: 23.97 kB / 496.2 MB, free: 1.145 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.4542, allocations: 15.98 kB / 496.2 MB, free: 1.129 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.4543, allocations: 127.2 kB / 496.3 MB, free: 1.004 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4543, allocations: 0 / 496.3 MB, free: 1.004 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003749/0.4547, allocations: 79.84 kB / 496.4 MB, free: 0.9258 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.001362/0.4561, allocations: 1.196 MB / 497.6 MB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009352/0.457, allocations: 0.5604 MB / 498.2 MB, free: 15.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.4571, allocations: 0 / 498.2 MB, free: 15.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005651/0.4576, allocations: 402.6 kB / 498.6 MB, free: 14.67 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006243/0.4583, allocations: 121.3 kB / 498.7 MB, free: 14.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003244/0.4615, allocations: 2.327 MB / 0.4893 GB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004292/0.462, allocations: 0.7526 MB / 0.49 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002168/0.4622, allocations: 57.89 kB / 0.4901 GB, free: 11.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.4623, allocations: 63.42 kB / 0.4901 GB, free: 11.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.363e-06/0.4623, allocations: 0 / 0.4901 GB, free: 11.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02343/0.4858, allocations: 5.849 MB / 0.4958 GB, free: 5.605 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/0.4861, allocations: 179.3 kB / 0.496 GB, free: 5.367 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.322, allocations: 3.938 kB / 0.496 GB, free: 5.363 MB / 378.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