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.00212/0.00212, allocations: 177.9 kB / 8.05 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.249/2.249, allocations: 205.3 MB / 213.8 MB, free: 13.75 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.001145/0.001145, allocations: 93.67 kB / 261.8 MB, free: 13.42 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1104/0.1104, allocations: 12.58 MB / 322.3 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.717e-05/2.713e-05, allocations: 4 kB / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1027, allocations: 50.38 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4552/0.5579, allocations: 81.17 MB / 0.4986 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/0.5583, allocations: 83.58 kB / 0.4987 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02407/0.5824, allocations: 5.824 MB / 0.5044 GB, free: 10.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5824, allocations: 0 / 0.5044 GB, free: 10.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.794e-05/0.5825, allocations: 7.219 kB / 0.5044 GB, free: 10.58 MB / 330.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.0006974/0.5832, allocations: 483.1 kB / 0.5049 GB, free: 10.11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.5833, allocations: 11.75 kB / 0.5049 GB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.22e-05/0.5833, allocations: 23.25 kB / 0.5049 GB, free: 10.1 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004999/0.5839, allocations: 256.4 kB / 0.5051 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.5839, allocations: 0 / 0.5051 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.6e-05/0.5839, allocations: 19.58 kB / 0.5052 GB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001502/0.5841, allocations: 36.3 kB / 0.5052 GB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003317/0.5844, allocations: 154.5 kB / 0.5053 GB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.5845, allocations: 0 / 0.5053 GB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.86e-05/0.5845, allocations: 4 kB / 0.5053 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.5845, allocations: 0 / 0.5053 GB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006154/0.5851, allocations: 432.5 kB / 0.5058 GB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001966/0.5854, allocations: 125 kB / 0.5059 GB, free: 9.254 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.351e-05/0.5855, allocations: 52.61 kB / 0.5059 GB, free: 9.219 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.001e-05/0.5855, allocations: 4 kB / 0.5059 GB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.5857, allocations: 91.08 kB / 0.506 GB, free: 9.141 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 2.495e-06/0.5857, allocations: 3.938 kB / 0.506 GB, free: 9.137 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.000361/0.5861, allocations: 112.1 kB / 0.5061 GB, free: 9.086 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.5862, allocations: 162 kB / 0.5063 GB, free: 8.895 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003249/0.5865, allocations: 238.6 kB / 0.5065 GB, free: 8.777 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.5865, allocations: 29.55 kB / 0.5065 GB, free: 8.746 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.374e-05/0.5866, allocations: 113 kB / 0.5066 GB, free: 8.656 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/0.5867, allocations: 25.45 kB / 0.5067 GB, free: 8.645 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.515e-06/0.5867, allocations: 0 / 0.5067 GB, free: 8.645 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.972e-05/0.5868, allocations: 334.2 kB / 0.507 GB, free: 8.32 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.784e-05/0.5869, allocations: 26.53 kB / 0.507 GB, free: 8.312 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.12e-05/0.587, allocations: 70.11 kB / 0.5071 GB, free: 8.246 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.5871, allocations: 37.11 kB / 0.5071 GB, free: 8.234 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.5871, allocations: 3.953 kB / 0.5071 GB, free: 8.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002474/0.5874, allocations: 107.8 kB / 0.5072 GB, free: 8.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.5874, allocations: 7.625 kB / 0.5072 GB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/0.5874, allocations: 3.984 kB / 0.5072 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.5875, allocations: 3.844 kB / 0.5072 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.5876, allocations: 11.81 kB / 0.5072 GB, free: 8.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.5876, allocations: 7.938 kB / 0.5073 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001357/0.5878, allocations: 15.73 kB / 0.5073 GB, free: 8.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.5878, allocations: 7.156 kB / 0.5073 GB, free: 8.156 MB / 330.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 () * 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 9.007e-05/0.5879, allocations: 108.7 kB / 0.5074 GB, free: 8.051 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002497/0.5882, allocations: 122 kB / 0.5075 GB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.239e-05/0.5882, allocations: 19.41 kB / 0.5075 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.5885, allocations: 107.2 kB / 0.5076 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.292e-06/0.5885, allocations: 7.938 kB / 0.5076 GB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5885, allocations: 0 / 0.5076 GB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.5885, allocations: 0 / 0.5076 GB, free: 7.926 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002257/0.5888, allocations: 212.9 kB / 0.5078 GB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5888, allocations: 0 / 0.5078 GB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6e-05/0.5889, allocations: 11.73 kB / 0.5078 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.5889, allocations: 0 / 0.5078 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.5889, allocations: 3.938 kB / 0.5078 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.5889, allocations: 3.938 kB / 0.5078 GB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.5889, allocations: 3.844 kB / 0.5078 GB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002859/0.5892, allocations: 199.9 kB / 0.508 GB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.5894, allocations: 123.1 kB / 0.5082 GB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.24e-05/0.5894, allocations: 4 kB / 0.5082 GB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.5896, allocations: 3.656 kB / 0.5082 GB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.806e-05/0.5896, allocations: 11.78 kB / 0.5082 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.5897, allocations: 3.875 kB / 0.5082 GB, free: 7.441 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002251/0.5899, allocations: 186.3 kB / 0.5084 GB, free: 7.348 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5899, allocations: 0 / 0.5084 GB, free: 7.348 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004084/0.5903, allocations: 38.19 kB / 0.5084 GB, free: 7.34 MB / 330.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) * 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.001472/0.5918, allocations: 1.216 MB / 0.5096 GB, free: 6.242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002784/0.5921, allocations: 64.53 kB / 0.5096 GB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.5921, allocations: 0 / 0.5096 GB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.113e-05/0.5922, allocations: 31.11 kB / 0.5097 GB, free: 6.234 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005372/0.5928, allocations: 52.75 kB / 0.5097 GB, free: 6.223 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008653/0.5937, allocations: 305.9 kB / 0.51 GB, free: 6 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.5939, allocations: 0.7373 MB / 0.5107 GB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001406/0.5941, allocations: 35.88 kB / 0.5108 GB, free: 5.258 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.5942, allocations: 53.42 kB / 0.5108 GB, free: 5.246 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5942, allocations: 3.938 kB / 0.5108 GB, free: 5.242 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04173/0.6359, allocations: 3.795 MB / 0.5145 GB, free: 3.398 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003088/0.6363, allocations: 190.4 kB / 0.5147 GB, free: 3.203 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.619/3.256, allocations: 0 / 0.5147 GB, free: 3.203 MB / 330.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