Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001621/0.001621, allocations: 181.3 kB / 15.8 MB, free: 6.336 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.07/2.07, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001793/0.001793, allocations: 102.8 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09503/0.09503, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000548/0.0005481, allocations: 13.06 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09711, allocations: 50.38 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1528/0.25, allocations: 81.93 MB / 0.5121 GB, free: 8.789 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/0.2503, allocations: 91.94 kB / 0.5122 GB, free: 8.699 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02669/0.277, allocations: 5.887 MB / 0.518 GB, free: 2.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.2771, allocations: 0 / 0.518 GB, free: 2.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.852e-05/0.2771, allocations: 4 kB / 0.518 GB, free: 2.801 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009321/0.2781, allocations: 0.5155 MB / 0.5185 GB, free: 2.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.2781, allocations: 8.031 kB / 0.5185 GB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.647e-05/0.2782, allocations: 38.56 kB / 0.5185 GB, free: 2.176 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.048e-05/0.2783, allocations: 19.72 kB / 0.5185 GB, free: 2.156 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005379/0.2788, allocations: 265.7 kB / 0.5188 GB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.2789, allocations: 7.953 kB / 0.5188 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.911e-05/0.2789, allocations: 8 kB / 0.5188 GB, free: 1.844 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00045/0.2794, allocations: 159.5 kB / 0.5189 GB, free: 1.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.2794, allocations: 4 kB / 0.519 GB, free: 1.656 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.2794, allocations: 4 kB / 0.519 GB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.2795, allocations: 4 kB / 0.519 GB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001663/0.2796, allocations: 43.91 kB / 0.519 GB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007774/0.2804, allocations: 450.6 kB / 0.5194 GB, free: 1.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003703/0.2808, allocations: 142.5 kB / 0.5196 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.2809, allocations: 12.19 kB / 0.5196 GB, free: 0.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002414/0.2811, allocations: 93.03 kB / 0.5197 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.485e-06/0.2811, allocations: 0 / 0.5197 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005981/0.2818, allocations: 157.7 kB / 0.5198 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001084/0.2819, allocations: 162.1 kB / 0.52 GB, free: 464 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004358/0.2823, allocations: 248.1 kB / 0.5202 GB, free: 208 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.2824, allocations: 25.7 kB / 0.5202 GB, free: 176 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.2825, allocations: 116.4 kB / 0.5203 GB, free: 52 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.001e-05/0.2825, allocations: 23.73 kB / 0.5204 GB, free: 28 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.067e-06/0.2826, allocations: 0 / 0.5204 GB, free: 28 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.2755/0.558, allocations: 329.3 kB / 0.5207 GB, free: 83.65 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001834/0.5583, allocations: 22.58 kB / 0.5207 GB, free: 83.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001468/0.5584, allocations: 80.06 kB / 0.5208 GB, free: 83.59 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.5586, allocations: 34.02 kB / 0.5208 GB, free: 83.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.5586, allocations: 0 / 0.5208 GB, free: 83.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003788/0.559, allocations: 129.8 kB / 0.5209 GB, free: 83.56 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.559, allocations: 5.641 kB / 0.5209 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.559, allocations: 2.562 kB / 0.5209 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/0.5591, allocations: 1.969 kB / 0.5209 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.5592, allocations: 16.12 kB / 0.521 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.5592, allocations: 5.453 kB / 0.521 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001389/0.5594, allocations: 17.81 kB / 0.521 GB, free: 83.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.5594, allocations: 4 kB / 0.521 GB, free: 83.56 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: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 0.0001824/0.5596, allocations: 149.6 kB / 0.5211 GB, free: 83.44 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000119/0.5597, allocations: 66.36 kB / 0.5212 GB, free: 83.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003761/0.5601, allocations: 118.2 kB / 0.5213 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.5601, allocations: 5.219 kB / 0.5213 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.5602, allocations: 3.562 kB / 0.5213 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.954e-06/0.5602, allocations: 9.844 kB / 0.5213 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/0.5605, allocations: 234.4 kB / 0.5215 GB, free: 83.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.5605, allocations: 1.031 kB / 0.5215 GB, free: 83.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.933e-05/0.5605, allocations: 10.39 kB / 0.5216 GB, free: 83.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.5606, allocations: 1.281 kB / 0.5216 GB, free: 83.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.5606, allocations: 2.25 kB / 0.5216 GB, free: 83.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.993e-06/0.5606, allocations: 7.141 kB / 0.5216 GB, free: 83.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5606, allocations: 0.9688 kB / 0.5216 GB, free: 83.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003851/0.561, allocations: 221.8 kB / 0.5218 GB, free: 83.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.5612, allocations: 118 kB / 0.5219 GB, free: 82.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.672e-05/0.5612, allocations: 3.125 kB / 0.5219 GB, free: 82.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.5613, allocations: 8.453 kB / 0.5219 GB, free: 82.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.528e-05/0.5614, allocations: 7.359 kB / 0.5219 GB, free: 82.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.87e-05/0.5614, allocations: 10.34 kB / 0.5219 GB, free: 82.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002905/0.5617, allocations: 199.2 kB / 0.5221 GB, free: 82.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5618, allocations: 0 / 0.5221 GB, free: 82.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003933/0.5622, allocations: 37.48 kB / 0.5221 GB, free: 82.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.001684/0.5638, allocations: 1.279 MB / 0.5234 GB, free: 81.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004572/0.5644, allocations: 85.94 kB / 0.5235 GB, free: 81.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.5644, allocations: 0 / 0.5235 GB, free: 81.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.5645, allocations: 35.52 kB / 0.5235 GB, free: 81.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005554/0.5651, allocations: 72.55 kB / 0.5236 GB, free: 81.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.5674, allocations: 1.756 MB / 0.5253 GB, free: 80.5 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002578/0.5677, allocations: 0.7361 MB / 0.526 GB, free: 79.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001701/0.5679, allocations: 24.19 kB / 0.526 GB, free: 79.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001578/0.5681, allocations: 50.55 kB / 0.5261 GB, free: 79.79 MB / 362.7 MB Notification: Performance of SimCode: time 1.863e-06/0.5681, allocations: 1.688 kB / 0.5261 GB, free: 79.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02634/0.5944, allocations: 4.287 MB / 0.5303 GB, free: 79.22 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002094/0.5947, allocations: 236 kB / 0.5305 GB, free: 78.98 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.533/3.128, allocations: 0 / 0.5305 GB, free: 78.98 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat does not exist to compare? outputFormat=mat