Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",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.001586/0.001586, allocations: 176.2 kB / 8.348 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.5/1.5, allocations: 221.5 MB / 230.3 MB, free: 7.586 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.0008313/0.0008313, allocations: 86.19 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.992e-05/1.978e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.123, allocations: 50.42 MB / 387.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3355/0.4585, allocations: 79.87 MB / 467.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.4588, allocations: 67.97 kB / 467.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01607/0.4749, allocations: 5.818 MB / 473.3 MB, free: 8.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.4749, allocations: 8 kB / 473.3 MB, free: 8.973 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.4749, allocations: 0 / 473.3 MB, free: 8.973 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006659/0.4756, allocations: 496.4 kB / 473.8 MB, free: 8.438 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.4757, allocations: 12.03 kB / 473.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.778e-05/0.4757, allocations: 19.77 kB / 473.8 MB, free: 8.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003767/0.4761, allocations: 261.8 kB / 474.1 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.143e-05/0.4761, allocations: 3.984 kB / 474.1 MB, free: 8.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.84e-05/0.4762, allocations: 4 kB / 474.1 MB, free: 8.102 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001124/0.4763, allocations: 39.94 kB / 474.1 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.4765, allocations: 102 kB / 474.2 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.4765, allocations: 0 / 474.2 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.4765, allocations: 4 kB / 474.2 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.4765, allocations: 7.953 kB / 474.2 MB, free: 7.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000607/0.4771, allocations: 0.5798 MB / 474.8 MB, free: 7.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.4773, allocations: 117.1 kB / 474.9 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.443e-05/0.4774, allocations: 42.69 kB / 475 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.421e-05/0.4774, allocations: 4 kB / 475 MB, free: 7.105 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001767/0.4776, allocations: 118 kB / 475.1 MB, free: 6.969 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.745e-06/0.4776, allocations: 7.922 kB / 475.1 MB, free: 6.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002748/0.4779, allocations: 133.4 kB / 475.2 MB, free: 6.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.478, allocations: 132.5 kB / 475.4 MB, free: 6.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002635/0.4782, allocations: 248.4 kB / 475.6 MB, free: 6.418 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.4783, allocations: 29.73 kB / 475.6 MB, free: 6.383 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.257e-05/0.4784, allocations: 128.1 kB / 475.8 MB, free: 6.254 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.4784, allocations: 23.66 kB / 475.8 MB, free: 6.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.333e-06/0.4784, allocations: 0 / 475.8 MB, free: 6.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4786, allocations: 330.8 kB / 476.1 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.944e-05/0.4786, allocations: 28 kB / 476.1 MB, free: 5.871 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.948e-05/0.4787, allocations: 78.56 kB / 476.2 MB, free: 5.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.745e-05/0.4788, allocations: 31.92 kB / 476.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4788, allocations: 0 / 476.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001824/0.479, allocations: 121.3 kB / 476.4 MB, free: 5.617 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.479, allocations: 4.938 kB / 476.4 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.479, allocations: 4 kB / 476.4 MB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.479, allocations: 4.125 kB / 476.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.377e-05/0.4791, allocations: 19.89 kB / 476.4 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.4791, allocations: 7.984 kB / 476.4 MB, free: 5.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.4793, allocations: 8 kB / 476.4 MB, free: 5.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.4793, allocations: 4 kB / 476.4 MB, free: 5.566 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.202e-05/0.4794, allocations: 120.9 kB / 476.5 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002076/0.4796, allocations: 129.3 kB / 476.7 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.166e-05/0.4796, allocations: 15.81 kB / 476.7 MB, free: 5.293 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001847/0.4798, allocations: 115.4 kB / 476.8 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.4798, allocations: 4.312 kB / 476.8 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.4798, allocations: 0 / 476.8 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.4799, allocations: 0 / 476.8 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.4801, allocations: 230 kB / 477 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.4801, allocations: 4 kB / 477 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.602e-05/0.4801, allocations: 7.984 kB / 477 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.4801, allocations: 4 kB / 477 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.4802, allocations: 4.031 kB / 477 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.4802, allocations: 0 / 477 MB, free: 4.887 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.4802, allocations: 7.953 kB / 477 MB, free: 4.879 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.4804, allocations: 191.8 kB / 477.2 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.288e-05/0.4805, allocations: 116.8 kB / 477.3 MB, free: 4.523 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.541e-05/0.4806, allocations: 4 kB / 477.3 MB, free: 4.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.4807, allocations: 11.98 kB / 477.4 MB, free: 4.508 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/0.4807, allocations: 11.98 kB / 477.4 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.4807, allocations: 8 kB / 477.4 MB, free: 4.488 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001909/0.4809, allocations: 196.5 kB / 477.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.481, allocations: 0 / 477.6 MB, free: 4.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002642/0.4812, allocations: 39.98 kB / 477.6 MB, free: 4.254 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001294/0.4825, allocations: 1.123 MB / 478.7 MB, free: 3.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001999/0.4827, allocations: 79.92 kB / 478.8 MB, free: 3.102 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.4827, allocations: 0 / 478.8 MB, free: 3.102 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.461e-05/0.4829, allocations: 55.92 kB / 478.9 MB, free: 3.047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.4832, allocations: 40.73 kB / 478.9 MB, free: 3.008 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007695/0.484, allocations: 332.7 kB / 479.2 MB, free: 2.633 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.4843, allocations: 0.7319 MB / 480 MB, free: 1.875 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.353e-05/0.4844, allocations: 33.86 kB / 480 MB, free: 1.844 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001065/0.4845, allocations: 59.34 kB / 480 MB, free: 1.785 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4845, allocations: 4 kB / 480.1 MB, free: 1.781 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02397/0.5085, allocations: 4.095 MB / 484.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002071/0.5088, allocations: 159.5 kB / 484.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.696/2.204, allocations: 0 / 484.3 MB, free: 13.51 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat