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.0017/0.0017, allocations: 174.9 kB / 13.63 MB, free: 1.684 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.32/1.32, allocations: 221.3 MB / 235.5 MB, free: 2.898 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.0008669/0.0008669, allocations: 91.23 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.826e-05/2.835e-05, allocations: 7.984 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2975/0.4035, allocations: 79.44 MB / 473.8 MB, free: 8.047 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.4037, allocations: 67.97 kB / 473.8 MB, free: 7.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01758/0.4213, allocations: 7.271 MB / 481.1 MB, free: 0.707 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.4213, allocations: 0 / 481.1 MB, free: 0.707 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.4213, allocations: 4 kB / 481.1 MB, free: 0.7031 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.0008274/0.4222, allocations: 0.5866 MB / 481.7 MB, free: 56 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.4222, allocations: 12.03 kB / 481.7 MB, free: 44 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.925e-05/0.4223, allocations: 54.62 kB / 481.8 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.323e-05/0.4224, allocations: 27.72 kB / 481.8 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004241/0.4228, allocations: 259.2 kB / 482.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.7e-05/0.4229, allocations: 49.69 kB / 482.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.366e-05/0.423, allocations: 23.95 kB / 482.1 MB, free: 15.58 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004081/0.4234, allocations: 224.2 kB / 482.3 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.13e-05/0.4234, allocations: 4 kB / 482.4 MB, free: 15.35 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.4235, allocations: 8 kB / 482.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.4235, allocations: 4 kB / 482.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/0.4238, allocations: 172.1 kB / 482.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001288/0.4251, allocations: 0.7642 MB / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000361/0.4254, allocations: 259.5 kB / 483.5 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002744/0.4257, allocations: 201.4 kB / 483.7 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.552e-05/0.4258, allocations: 7.984 kB / 483.8 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003887/0.4262, allocations: 293.3 kB / 484 MB, free: 13.55 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.703e-06/0.4262, allocations: 0 / 484 MB, free: 13.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0005968/0.4268, allocations: 393.4 kB / 484.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.4269, allocations: 233.6 kB / 484.7 MB, free: 12.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.427, allocations: 165.4 kB / 484.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.4271, allocations: 37.64 kB / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.062e-05/0.4272, allocations: 136.4 kB / 485 MB, free: 12.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.642e-05/0.4272, allocations: 83.05 kB / 485.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/0.4273, allocations: 4 kB / 485.1 MB, free: 12.44 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.4274, allocations: 334.9 kB / 485.4 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.4275, allocations: 96.67 kB / 485.5 MB, free: 12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.4277, allocations: 156.2 kB / 485.6 MB, free: 11.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.4279, allocations: 197.8 kB / 485.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.4279, allocations: 0 / 485.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0004859/0.4284, allocations: 411.8 kB / 486.2 MB, free: 11.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.21e-05/0.4285, allocations: 98.34 kB / 486.3 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.4285, allocations: 4 kB / 486.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.4285, allocations: 4 kB / 486.3 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.4287, allocations: 39.86 kB / 486.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.866e-06/0.4287, allocations: 8.297 kB / 486.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001798/0.4289, allocations: 35.94 kB / 486.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.429, allocations: 11.94 kB / 486.4 MB, free: 10.98 MB / 362.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.0001769/0.4291, allocations: 217.8 kB / 486.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.447e-05/0.4292, allocations: 35.7 kB / 486.7 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.4293, allocations: 18.78 kB / 486.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.4293, allocations: 4 kB / 486.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4293, allocations: 0 / 486.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.4293, allocations: 0 / 486.7 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001069/0.4304, allocations: 0.9585 MB / 487.7 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.4304, allocations: 0 / 487.7 MB, free: 9.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.4305, allocations: 23.98 kB / 487.7 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.999e-06/0.4305, allocations: 3.953 kB / 487.7 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.895e-05/0.4305, allocations: 12 kB / 487.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4305, allocations: 3.984 kB / 487.7 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.4305, allocations: 0 / 487.7 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006412/0.4312, allocations: 0.5714 MB / 488.3 MB, free: 9.004 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.911e-05/0.4313, allocations: 100.8 kB / 488.4 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.444e-05/0.4313, allocations: 16 kB / 488.4 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/0.4316, allocations: 23.97 kB / 488.4 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.793e-05/0.4316, allocations: 23.97 kB / 488.4 MB, free: 8.824 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.927e-05/0.4317, allocations: 23.98 kB / 488.5 MB, free: 8.801 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.579e-05/0.4318, allocations: 128.3 kB / 488.6 MB, free: 8.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4318, allocations: 0 / 488.6 MB, free: 8.676 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003148/0.4321, allocations: 79.84 kB / 488.7 MB, free: 8.598 MB / 362.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.0009442/0.4331, allocations: 1.218 MB / 489.9 MB, free: 7.336 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005635/0.4336, allocations: 0.4941 MB / 490.4 MB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.4336, allocations: 0 / 490.4 MB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.434, allocations: 374.6 kB / 490.7 MB, free: 6.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005771/0.4346, allocations: 128.3 kB / 490.9 MB, free: 6.293 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008884/0.4355, allocations: 433.5 kB / 491.3 MB, free: 5.828 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.4358, allocations: 0.7529 MB / 492 MB, free: 5.051 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001617/0.436, allocations: 50.02 kB / 492.1 MB, free: 5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.4361, allocations: 63.42 kB / 492.2 MB, free: 4.938 MB / 362.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4361, allocations: 0 / 492.2 MB, free: 4.938 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01693/0.4531, allocations: 5.855 MB / 498 MB, free: 15.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/0.4532, allocations: 153.5 kB / 498.2 MB, free: 15.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/2.138, allocations: 4 kB / 498.2 MB, free: 15.02 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