Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1",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.0009467/0.0009467, allocations: 176.4 kB / 8.346 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.356/1.356, allocations: 221.5 MB / 230.3 MB, free: 7.605 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.0008706/0.0008706, allocations: 87.98 kB / 281.2 MB, free: 5.359 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.206e-05/2.208e-05, allocations: 8 kB / 337.1 MB, free: 9.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1446, allocations: 50.42 MB / 387.5 MB, free: 7.516 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4053/0.55, allocations: 79.6 MB / 467.1 MB, free: 15.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002273/0.5503, allocations: 71.97 kB / 467.2 MB, free: 15.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02594/0.5762, allocations: 9.152 MB / 476.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.5763, allocations: 0 / 476.4 MB, free: 5.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.694e-05/0.5763, allocations: 12 kB / 476.4 MB, free: 5.926 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007153/0.577, allocations: 0.5768 MB / 477 MB, free: 5.289 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.5771, allocations: 12.02 kB / 477 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.5772, allocations: 39.58 kB / 477 MB, free: 5.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005676/0.5778, allocations: 331.9 kB / 477.3 MB, free: 4.875 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.5778, allocations: 7.984 kB / 477.3 MB, free: 4.867 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.5778, allocations: 8 kB / 477.3 MB, free: 4.859 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001465/0.578, allocations: 63.98 kB / 477.4 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002293/0.5782, allocations: 134.7 kB / 477.5 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.5782, allocations: 0 / 477.5 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.5783, allocations: 3.953 kB / 477.5 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.5783, allocations: 7.984 kB / 477.5 MB, free: 4.641 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006843/0.579, allocations: 481 kB / 478 MB, free: 4.133 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002001/0.5792, allocations: 119.5 kB / 478.1 MB, free: 4.008 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.341e-05/0.5793, allocations: 44.84 kB / 478.2 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.5793, allocations: 3.938 kB / 478.2 MB, free: 3.957 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.5795, allocations: 108.1 kB / 478.3 MB, free: 3.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.5795, allocations: 0 / 478.3 MB, free: 3.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003198/0.5798, allocations: 158.7 kB / 478.4 MB, free: 3.68 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.121e-05/0.5799, allocations: 114.8 kB / 478.6 MB, free: 3.543 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004291/0.5803, allocations: 381 kB / 478.9 MB, free: 3.168 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.5804, allocations: 25.7 kB / 479 MB, free: 3.137 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.5805, allocations: 168 kB / 479.1 MB, free: 2.969 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/0.5805, allocations: 39.55 kB / 479.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-06/0.5806, allocations: 3.938 kB / 479.2 MB, free: 2.926 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.5807, allocations: 338.8 kB / 479.5 MB, free: 2.586 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.824e-05/0.5808, allocations: 39.98 kB / 479.5 MB, free: 2.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.5809, allocations: 104 kB / 479.6 MB, free: 2.426 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.928e-05/0.581, allocations: 43.97 kB / 479.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.581, allocations: 0 / 479.7 MB, free: 2.383 MB / 346.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002399/0.5813, allocations: 163.7 kB / 479.8 MB, free: 2.219 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.5813, allocations: 8.062 kB / 479.8 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.5813, allocations: 0 / 479.8 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.5813, allocations: 8.031 kB / 479.8 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.5815, allocations: 23.92 kB / 479.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.5815, allocations: 0 / 479.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.5816, allocations: 19.83 kB / 479.9 MB, free: 2.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.5817, allocations: 15.98 kB / 479.9 MB, free: 2.145 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition2,$PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEvent,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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 9.804e-05/0.5818, allocations: 114.7 kB / 480 MB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002462/0.582, allocations: 161.2 kB / 480.2 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/0.5821, allocations: 31.62 kB / 480.2 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003127/0.5824, allocations: 182.2 kB / 480.4 MB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.5824, allocations: 4 kB / 480.4 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.5824, allocations: 0 / 480.4 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.5824, allocations: 0 / 480.4 MB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.5827, allocations: 289.9 kB / 480.7 MB, free: 1.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.5827, allocations: 4 kB / 480.7 MB, free: 1.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.157e-05/0.5828, allocations: 15.94 kB / 480.7 MB, free: 1.305 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.5828, allocations: 4 kB / 480.7 MB, free: 1.301 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.5828, allocations: 4 kB / 480.7 MB, free: 1.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5828, allocations: 4 kB / 480.7 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.5828, allocations: 3.984 kB / 480.7 MB, free: 1.289 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002675/0.5831, allocations: 198 kB / 480.9 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001095/0.5832, allocations: 120.7 kB / 481 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.5833, allocations: 3.984 kB / 481 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.537e-05/0.5834, allocations: 12 kB / 481 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.525e-05/0.5834, allocations: 19.97 kB / 481.1 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.5835, allocations: 4 kB / 481.1 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003148/0.5838, allocations: 300.6 kB / 481.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.833e-06/0.5838, allocations: 0 / 481.4 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003397/0.5841, allocations: 60.12 kB / 481.4 MB, free: 0.5469 MB / 346.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: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,And1.u1,And1.u2,And1.y,Or1.u1,Pre1.u) * Number of discrete states: 5 (Pre1.u,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001371/0.5855, allocations: 0.9997 MB / 482.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002445/0.5858, allocations: 120.2 kB / 482.5 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.5858, allocations: 0 / 482.5 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.507e-05/0.5859, allocations: 59.92 kB / 482.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.5863, allocations: 65.22 kB / 482.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008846/0.5872, allocations: 472.4 kB / 483.1 MB, free: 14.87 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.5876, allocations: 0.7872 MB / 483.9 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001299/0.5877, allocations: 42.05 kB / 483.9 MB, free: 14.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.5879, allocations: 103.4 kB / 484 MB, free: 13.91 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5879, allocations: 0 / 484 MB, free: 13.91 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02805/0.616, allocations: 6.068 MB / 490.1 MB, free: 7.871 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.6162, allocations: 163.1 kB / 490.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.007/2.623, allocations: 0 / 490.3 MB, free: 7.672 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat does not exist to compare? outputFormat=mat