Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",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.002233/0.002232, allocations: 183.8 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.237/2.237, 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.00111/0.001109, allocations: 94.8 kB / 270.3 MB, free: 13.36 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.1301/0.1301, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005565/0.0005566, allocations: 16.75 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0941/0.0947, allocations: 50.36 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1467/0.2415, allocations: 81.86 MB / 0.512 GB, free: 8.875 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.2419, allocations: 83.95 kB / 0.5121 GB, free: 8.793 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02966/0.2715, allocations: 6.33 MB / 0.5183 GB, free: 2.453 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.2716, allocations: 0 / 0.5183 GB, free: 2.453 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.205e-05/0.2716, allocations: 8.188 kB / 0.5183 GB, free: 2.445 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009026/0.2725, allocations: 0.5078 MB / 0.5188 GB, free: 1.883 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.2726, allocations: 8.031 kB / 0.5188 GB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.621e-05/0.2727, allocations: 46.48 kB / 0.5189 GB, free: 1.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.493e-05/0.2728, allocations: 15.81 kB / 0.5189 GB, free: 1.805 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.2733, allocations: 261.6 kB / 0.5191 GB, free: 1.512 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.2734, allocations: 11.95 kB / 0.5191 GB, free: 1.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.504e-05/0.2734, allocations: 8 kB / 0.5191 GB, free: 1.492 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.2739, allocations: 144 kB / 0.5193 GB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.2739, allocations: 0 / 0.5193 GB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.2739, allocations: 0 / 0.5193 GB, free: 1.328 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.2739, allocations: 4 kB / 0.5193 GB, free: 1.324 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.2741, allocations: 43.91 kB / 0.5193 GB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006928/0.2748, allocations: 362.5 kB / 0.5197 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003218/0.2751, allocations: 107.9 kB / 0.5198 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.755e-05/0.2752, allocations: 8.109 kB / 0.5198 GB, free: 0.7305 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002053/0.2754, allocations: 75.33 kB / 0.5198 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.886e-06/0.2754, allocations: 4 kB / 0.5199 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005501/0.276, allocations: 141.3 kB / 0.52 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.2761, allocations: 144.4 kB / 0.5201 GB, free: 332 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.2766, allocations: 240.1 kB / 0.5204 GB, free: 84 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.2766, allocations: 29.64 kB / 0.5204 GB, free: 48 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2756/0.5522, allocations: 116.3 kB / 0.5205 GB, free: 84.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.318e-05/0.5524, allocations: 19.06 kB / 0.5205 GB, free: 84.38 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-06/0.5524, allocations: 3.125 kB / 0.5205 GB, free: 84.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.648e-05/0.5525, allocations: 329 kB / 0.5208 GB, free: 84.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.5526, allocations: 23.73 kB / 0.5209 GB, free: 84.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.5528, allocations: 67.22 kB / 0.5209 GB, free: 84.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001512/0.5529, allocations: 30.38 kB / 0.5209 GB, free: 84.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5529, allocations: 3.438 kB / 0.5209 GB, free: 84.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003634/0.5533, allocations: 117 kB / 0.5211 GB, free: 83.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.5533, allocations: 4.219 kB / 0.5211 GB, free: 83.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.5534, allocations: 0 / 0.5211 GB, free: 83.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.584e-05/0.5534, allocations: 6.125 kB / 0.5211 GB, free: 83.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.5535, allocations: 19.42 kB / 0.5211 GB, free: 83.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.5536, allocations: 3.031 kB / 0.5211 GB, free: 83.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.5537, allocations: 14.03 kB / 0.5211 GB, free: 83.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.51e-05/0.5537, allocations: 4.672 kB / 0.5211 GB, free: 83.98 MB / 362.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: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001561/0.5539, allocations: 142.8 kB / 0.5212 GB, free: 83.87 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.554, allocations: 64.02 kB / 0.5213 GB, free: 83.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003311/0.5543, allocations: 122.6 kB / 0.5214 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.5544, allocations: 2.312 kB / 0.5214 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.5544, allocations: 0 / 0.5214 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.5544, allocations: 3.906 kB / 0.5214 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.5546, allocations: 233.3 kB / 0.5217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.5546, allocations: 1 kB / 0.5217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.16e-05/0.5547, allocations: 6.219 kB / 0.5217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.5547, allocations: 1.094 kB / 0.5217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.5547, allocations: 10.97 kB / 0.5217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.5548, allocations: 12.17 kB / 0.5217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5548, allocations: 1.344 kB / 0.5217 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003453/0.5551, allocations: 182.7 kB / 0.5219 GB, free: 83.47 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.5553, allocations: 116.6 kB / 0.522 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.415e-05/0.5553, allocations: 2.844 kB / 0.522 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.5554, allocations: 9.5 kB / 0.522 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.701e-05/0.5555, allocations: 5.188 kB / 0.522 GB, free: 83.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.5555, allocations: 3.719 kB / 0.522 GB, free: 83.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002728/0.5558, allocations: 195.6 kB / 0.5222 GB, free: 83.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5558, allocations: 0 / 0.5222 GB, free: 83.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003483/0.5562, allocations: 38.95 kB / 0.5222 GB, free: 83.29 MB / 362.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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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 (10): * Single equations (assignments): 8 * 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.001611/0.5578, allocations: 1.186 MB / 0.5234 GB, free: 82.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000308/0.5581, allocations: 69.23 kB / 0.5234 GB, free: 82.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.5581, allocations: 5.5 kB / 0.5234 GB, free: 82.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.5582, allocations: 24.98 kB / 0.5235 GB, free: 82.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004683/0.5587, allocations: 61.3 kB / 0.5235 GB, free: 82.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.5608, allocations: 1.569 MB / 0.5251 GB, free: 81.19 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.561, allocations: 0.7343 MB / 0.5258 GB, free: 80.49 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001274/0.5612, allocations: 26.28 kB / 0.5258 GB, free: 80.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.5613, allocations: 49.73 kB / 0.5258 GB, free: 80.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5613, allocations: 0 / 0.5258 GB, free: 80.48 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.5899, allocations: 4.113 MB / 0.5299 GB, free: 79.93 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.5901, allocations: 244.9 kB / 0.5301 GB, free: 79.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.458/3.048, allocations: 0 / 0.5301 GB, free: 79.69 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat does not exist to compare? outputFormat=mat