Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.001571/0.001571, allocations: 182.7 kB / 15.8 MB, free: 6.316 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.105/2.105, 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.001219/0.001219, allocations: 94.8 kB / 270.3 MB, free: 13.35 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.0995/0.0995, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005461/0.0005461, allocations: 11.97 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09322, allocations: 50.36 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1508/0.2441, allocations: 82.03 MB / 0.5122 GB, free: 8.703 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003316/0.2445, allocations: 87.95 kB / 0.5123 GB, free: 8.617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02811/0.2726, allocations: 6.071 MB / 0.5182 GB, free: 2.535 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2727, allocations: 0 / 0.5182 GB, free: 2.535 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.627e-05/0.2727, allocations: 11.94 kB / 0.5182 GB, free: 2.523 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.001088/0.2738, allocations: 0.5349 MB / 0.5188 GB, free: 1.934 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.428e-05/0.2739, allocations: 8.031 kB / 0.5188 GB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.631e-05/0.274, allocations: 42.56 kB / 0.5188 GB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.533e-05/0.2741, allocations: 23.72 kB / 0.5188 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006652/0.2748, allocations: 290.4 kB / 0.5191 GB, free: 1.523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.2748, allocations: 11.95 kB / 0.5191 GB, free: 1.512 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.2749, allocations: 4 kB / 0.5191 GB, free: 1.508 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005197/0.2754, allocations: 184.7 kB / 0.5193 GB, free: 1.297 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.2754, allocations: 3.938 kB / 0.5193 GB, free: 1.293 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.2755, allocations: 4 kB / 0.5193 GB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.2755, allocations: 4 kB / 0.5193 GB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001928/0.2757, allocations: 35.98 kB / 0.5193 GB, free: 1.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000934/0.2766, allocations: 490.5 kB / 0.5198 GB, free: 0.7109 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004312/0.2771, allocations: 150.5 kB / 0.5199 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.2771, allocations: 3.938 kB / 0.52 GB, free: 0.5234 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002778/0.2774, allocations: 97.28 kB / 0.52 GB, free: 420 kB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 4.859e-06/0.2775, allocations: 4 kB / 0.52 GB, free: 416 kB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006809/0.2781, allocations: 173.2 kB / 0.5202 GB, free: 236 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.2783, allocations: 187.9 kB / 0.5204 GB, free: 4 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2815/0.5598, allocations: 306 kB / 0.5207 GB, free: 83.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.5599, allocations: 28.14 kB / 0.5207 GB, free: 83.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.474e-05/0.56, allocations: 131.2 kB / 0.5208 GB, free: 83.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.338e-05/0.5601, allocations: 21.34 kB / 0.5209 GB, free: 83.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.107e-05/0.5601, allocations: 2.531 kB / 0.5209 GB, free: 83.87 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.741e-05/0.5602, allocations: 336.1 kB / 0.5212 GB, free: 83.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.5603, allocations: 25.66 kB / 0.5212 GB, free: 83.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.5606, allocations: 106.1 kB / 0.5213 GB, free: 83.48 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.5607, allocations: 34.27 kB / 0.5213 GB, free: 83.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.5608, allocations: 1.125 kB / 0.5213 GB, free: 83.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004156/0.5612, allocations: 140.5 kB / 0.5215 GB, free: 83.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.5612, allocations: 6.609 kB / 0.5215 GB, free: 83.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.5612, allocations: 3.094 kB / 0.5215 GB, free: 83.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.5613, allocations: 1.969 kB / 0.5215 GB, free: 83.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002093/0.5615, allocations: 28.25 kB / 0.5215 GB, free: 83.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.5615, allocations: 3.438 kB / 0.5215 GB, free: 83.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001488/0.5617, allocations: 15.03 kB / 0.5215 GB, free: 83.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.5617, allocations: 4.344 kB / 0.5215 GB, free: 83.45 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.0001941/0.5619, allocations: 158.8 kB / 0.5217 GB, free: 83.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.5621, allocations: 75.95 kB / 0.5218 GB, free: 83.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004079/0.5625, allocations: 130.7 kB / 0.5219 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.5625, allocations: 4 kB / 0.5219 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.5625, allocations: 0 / 0.5219 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.5625, allocations: 0 / 0.5219 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/0.5628, allocations: 253.1 kB / 0.5221 GB, free: 83.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.5629, allocations: 2.578 kB / 0.5221 GB, free: 83.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.563, allocations: 21.39 kB / 0.5221 GB, free: 83.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.563, allocations: 1.312 kB / 0.5222 GB, free: 83.06 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.563, allocations: 7.484 kB / 0.5222 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.5631, allocations: 5.156 kB / 0.5222 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.5631, allocations: 3.594 kB / 0.5222 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004499/0.5635, allocations: 225.8 kB / 0.5224 GB, free: 82.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.5637, allocations: 125.5 kB / 0.5225 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.38e-05/0.5638, allocations: 9.203 kB / 0.5225 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.5639, allocations: 3.344 kB / 0.5225 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.209e-05/0.564, allocations: 12.78 kB / 0.5225 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.564, allocations: 5.109 kB / 0.5225 GB, free: 82.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003869/0.5644, allocations: 247.4 kB / 0.5228 GB, free: 82.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5644, allocations: 0 / 0.5228 GB, free: 82.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004837/0.5649, allocations: 57.67 kB / 0.5228 GB, free: 82.71 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.001804/0.5667, allocations: 1.293 MB / 0.5241 GB, free: 81.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004626/0.5672, allocations: 101.8 kB / 0.5242 GB, free: 81.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.82e-06/0.5673, allocations: 1.031 kB / 0.5242 GB, free: 81.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001657/0.5674, allocations: 44.23 kB / 0.5242 GB, free: 81.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005631/0.568, allocations: 69.33 kB / 0.5243 GB, free: 81.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.5709, allocations: 1.955 MB / 0.5262 GB, free: 80.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002826/0.5713, allocations: 0.7467 MB / 0.5269 GB, free: 79.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001948/0.5715, allocations: 36.62 kB / 0.527 GB, free: 79.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001571/0.5716, allocations: 67.61 kB / 0.527 GB, free: 79.63 MB / 362.7 MB Notification: Performance of SimCode: time 2.334e-06/0.5716, allocations: 0 / 0.527 GB, free: 79.63 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.6047, allocations: 4.942 MB / 0.5319 GB, free: 79.03 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002539/0.605, allocations: 235.6 kB / 0.5321 GB, free: 78.79 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.568/3.173, allocations: 4 kB / 0.5321 GB, free: 78.79 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat