Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",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.0022/0.002205, allocations: 184 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.125/2.125, 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.001134/0.001134, allocations: 94.84 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.1031/0.1031, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005321/0.0005321, allocations: 12.12 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09038/0.09095, allocations: 50.36 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1621/0.2531, allocations: 81.86 MB / 0.512 GB, free: 8.879 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003229/0.2535, allocations: 87.89 kB / 0.5121 GB, free: 8.793 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02732/0.2808, allocations: 5.961 MB / 0.5179 GB, free: 2.824 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2809, allocations: 0 / 0.5179 GB, free: 2.824 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.238e-05/0.2809, allocations: 7.938 kB / 0.5179 GB, free: 2.816 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.001016/0.282, allocations: 0.5311 MB / 0.5185 GB, free: 2.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/0.282, allocations: 12.03 kB / 0.5185 GB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.737e-05/0.2821, allocations: 42.55 kB / 0.5185 GB, free: 2.168 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.772e-05/0.2822, allocations: 23.66 kB / 0.5185 GB, free: 2.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.2828, allocations: 286.5 kB / 0.5188 GB, free: 1.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.2829, allocations: 8 kB / 0.5188 GB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.2829, allocations: 4 kB / 0.5188 GB, free: 1.809 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.2834, allocations: 155.6 kB / 0.519 GB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.2834, allocations: 3.938 kB / 0.519 GB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.2834, allocations: 7.938 kB / 0.519 GB, free: 1.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.2835, allocations: 4 kB / 0.519 GB, free: 1.613 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001754/0.2836, allocations: 31.97 kB / 0.519 GB, free: 1.582 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007959/0.2845, allocations: 410.3 kB / 0.5194 GB, free: 1.125 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.2849, allocations: 123.9 kB / 0.5195 GB, free: 0.9766 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.2849, allocations: 8 kB / 0.5195 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002446/0.2852, allocations: 75.5 kB / 0.5196 GB, free: 0.8828 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 3.106e-06/0.2852, allocations: 0 / 0.5196 GB, free: 0.8828 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006062/0.2858, allocations: 153.3 kB / 0.5198 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.2859, allocations: 166.5 kB / 0.5199 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005402/0.2865, allocations: 297.8 kB / 0.5202 GB, free: 232 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.2865, allocations: 29.7 kB / 0.5202 GB, free: 196 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.2867, allocations: 132 kB / 0.5204 GB, free: 60 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.118e-05/0.2867, allocations: 19.75 kB / 0.5204 GB, free: 40 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.539e-06/0.2867, allocations: 0 / 0.5204 GB, free: 40 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.2809/0.5676, allocations: 333.2 kB / 0.5207 GB, free: 83.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.5678, allocations: 22.8 kB / 0.5207 GB, free: 83.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000224/0.5681, allocations: 95.11 kB / 0.5208 GB, free: 83.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.5682, allocations: 31.62 kB / 0.5208 GB, free: 83.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.5683, allocations: 0 / 0.5208 GB, free: 83.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004131/0.5687, allocations: 128.9 kB / 0.521 GB, free: 83.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.5687, allocations: 8.75 kB / 0.521 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5687, allocations: 0 / 0.521 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.5688, allocations: 5.328 kB / 0.521 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.569, allocations: 17 kB / 0.521 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.569, allocations: 3.188 kB / 0.521 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.5691, allocations: 11.17 kB / 0.521 GB, free: 83.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.522e-05/0.5692, allocations: 8.406 kB / 0.521 GB, free: 83.34 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,shiftSample1.y,shiftSample1.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.000223/0.5694, allocations: 158.4 kB / 0.5212 GB, free: 83.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.5695, allocations: 65.95 kB / 0.5212 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004183/0.57, allocations: 127.2 kB / 0.5213 GB, free: 83.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.57, allocations: 2.297 kB / 0.5213 GB, free: 83.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.57, allocations: 3.453 kB / 0.5213 GB, free: 83.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.034e-05/0.57, allocations: 4.969 kB / 0.5214 GB, free: 83.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002662/0.5703, allocations: 245.5 kB / 0.5216 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.5703, allocations: 3.156 kB / 0.5216 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001234/0.5704, allocations: 15.06 kB / 0.5216 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/0.5705, allocations: 1.125 kB / 0.5216 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.5705, allocations: 4.516 kB / 0.5216 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.5705, allocations: 5.578 kB / 0.5216 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5705, allocations: 3.391 kB / 0.5216 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003863/0.5709, allocations: 199.5 kB / 0.5218 GB, free: 82.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.5711, allocations: 126.7 kB / 0.5219 GB, free: 82.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.286e-05/0.5711, allocations: 4.562 kB / 0.5219 GB, free: 82.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/0.5713, allocations: 4.734 kB / 0.5219 GB, free: 82.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.945e-05/0.5714, allocations: 10.25 kB / 0.5219 GB, free: 82.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.5714, allocations: 8.875 kB / 0.522 GB, free: 82.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003764/0.5718, allocations: 241.2 kB / 0.5222 GB, free: 82.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5718, allocations: 0 / 0.5222 GB, free: 82.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004536/0.5723, allocations: 50.92 kB / 0.5222 GB, free: 82.66 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,shiftSample1.y,sample.y,shiftSample1.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.001752/0.574, allocations: 1.203 MB / 0.5234 GB, free: 81.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004284/0.5745, allocations: 89.83 kB / 0.5235 GB, free: 81.67 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.5745, allocations: 1.594 kB / 0.5235 GB, free: 81.67 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001417/0.5747, allocations: 37.39 kB / 0.5235 GB, free: 81.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005347/0.5752, allocations: 56.67 kB / 0.5236 GB, free: 81.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002712/0.5779, allocations: 1.762 MB / 0.5253 GB, free: 80.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002783/0.5783, allocations: 0.752 MB / 0.526 GB, free: 79.85 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.5785, allocations: 33.59 kB / 0.5261 GB, free: 79.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.5786, allocations: 60.94 kB / 0.5261 GB, free: 79.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5787, allocations: 0 / 0.5261 GB, free: 79.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.6115, allocations: 4.833 MB / 0.5309 GB, free: 79.24 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003219/0.6119, allocations: 238.9 kB / 0.5311 GB, free: 78.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.552/3.164, allocations: 0.8438 kB / 0.5311 GB, free: 78.96 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat