Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample",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.002281/0.00228, allocations: 185.9 kB / 15.8 MB, free: 6.312 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.08/2.08, 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.001157/0.001157, allocations: 102.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.1102/0.1102, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005586/0.0005586, allocations: 13.44 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09242, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.2401, allocations: 81.96 MB / 0.5121 GB, free: 8.766 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003223/0.2405, allocations: 87.94 kB / 0.5122 GB, free: 8.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02707/0.2676, allocations: 6.066 MB / 0.5182 GB, free: 2.605 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2676, allocations: 0 / 0.5182 GB, free: 2.605 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.249e-05/0.2677, allocations: 4 kB / 0.5182 GB, free: 2.602 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.001019/0.2687, allocations: 0.5466 MB / 0.5187 GB, free: 2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.2688, allocations: 12.03 kB / 0.5187 GB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.868e-05/0.2688, allocations: 38.55 kB / 0.5187 GB, free: 1.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.107e-05/0.2689, allocations: 31.56 kB / 0.5188 GB, free: 1.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006255/0.2696, allocations: 298.4 kB / 0.5191 GB, free: 1.574 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.2696, allocations: 11.95 kB / 0.5191 GB, free: 1.562 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.132e-05/0.2697, allocations: 4 kB / 0.5191 GB, free: 1.559 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005336/0.2702, allocations: 180.4 kB / 0.5192 GB, free: 1.352 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2702, allocations: 0 / 0.5192 GB, free: 1.352 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.2703, allocations: 4 kB / 0.5192 GB, free: 1.348 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.2703, allocations: 4 kB / 0.5192 GB, free: 1.344 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001969/0.2705, allocations: 43.92 kB / 0.5193 GB, free: 1.301 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008275/0.2713, allocations: 407.2 kB / 0.5197 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004209/0.2718, allocations: 154.5 kB / 0.5198 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.305e-05/0.2718, allocations: 4.062 kB / 0.5198 GB, free: 0.6523 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002789/0.2721, allocations: 91.34 kB / 0.5199 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.565e-06/0.2721, allocations: 0 / 0.5199 GB, free: 0.5508 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006507/0.2728, allocations: 173.3 kB / 0.5201 GB, free: 384 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.2729, allocations: 187.9 kB / 0.5203 GB, free: 152 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3027/0.5757, allocations: 310.5 kB / 0.5206 GB, free: 83.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.5758, allocations: 30.52 kB / 0.5206 GB, free: 83.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.5759, allocations: 128.7 kB / 0.5207 GB, free: 83.86 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.565e-05/0.576, allocations: 14.62 kB / 0.5207 GB, free: 83.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.081e-05/0.576, allocations: 4.312 kB / 0.5207 GB, free: 83.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.006e-05/0.5761, allocations: 334.3 kB / 0.521 GB, free: 83.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.5763, allocations: 31.45 kB / 0.5211 GB, free: 83.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.5765, allocations: 106.1 kB / 0.5212 GB, free: 83.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.5766, allocations: 38.47 kB / 0.5212 GB, free: 83.47 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.5766, allocations: 0 / 0.5212 GB, free: 83.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004851/0.5771, allocations: 144.5 kB / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.5772, allocations: 10.42 kB / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.5772, allocations: 0 / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.5772, allocations: 2.219 kB / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002245/0.5775, allocations: 24.56 kB / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.5775, allocations: 4.062 kB / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.5777, allocations: 12.52 kB / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.18e-05/0.5777, allocations: 4.906 kB / 0.5214 GB, free: 83.44 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,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 (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.00024/0.578, allocations: 159.9 kB / 0.5216 GB, free: 83.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.5782, allocations: 85.53 kB / 0.5216 GB, free: 83.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004054/0.5786, allocations: 125.8 kB / 0.5218 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.5786, allocations: 5.5 kB / 0.5218 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.5786, allocations: 1.344 kB / 0.5218 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.5786, allocations: 1.375 kB / 0.5218 GB, free: 83.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.5789, allocations: 258.6 kB / 0.522 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.579, allocations: 5.562 kB / 0.522 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001452/0.5791, allocations: 18.92 kB / 0.522 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.366e-06/0.5791, allocations: 2.188 kB / 0.522 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/0.5792, allocations: 6.016 kB / 0.522 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.261e-06/0.5792, allocations: 4.312 kB / 0.5221 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.5792, allocations: 4.844 kB / 0.5221 GB, free: 83.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004499/0.5796, allocations: 229.9 kB / 0.5223 GB, free: 82.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.5798, allocations: 126.6 kB / 0.5224 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.601e-05/0.5799, allocations: 3.719 kB / 0.5224 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.58, allocations: 6.812 kB / 0.5224 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-05/0.5801, allocations: 11.72 kB / 0.5224 GB, free: 82.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.5801, allocations: 4.906 kB / 0.5224 GB, free: 82.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003789/0.5805, allocations: 242.7 kB / 0.5227 GB, free: 82.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.5805, allocations: 0 / 0.5227 GB, free: 82.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004506/0.581, allocations: 53.83 kB / 0.5227 GB, free: 82.72 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (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.00177/0.5828, allocations: 1.307 MB / 0.524 GB, free: 81.64 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004351/0.5832, allocations: 101.5 kB / 0.5241 GB, free: 81.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.5833, allocations: 0 / 0.5241 GB, free: 81.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001398/0.5834, allocations: 37.42 kB / 0.5241 GB, free: 81.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006149/0.584, allocations: 68.64 kB / 0.5242 GB, free: 81.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002986/0.587, allocations: 2.13 MB / 0.5263 GB, free: 80.18 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.5874, allocations: 0.7487 MB / 0.527 GB, free: 79.49 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002117/0.5876, allocations: 29.92 kB / 0.527 GB, free: 79.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.5878, allocations: 66.56 kB / 0.5271 GB, free: 79.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5878, allocations: 4 kB / 0.5271 GB, free: 79.47 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03161/0.6194, allocations: 5.109 MB / 0.5321 GB, free: 78.85 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/0.6197, allocations: 238.5 kB / 0.5323 GB, free: 78.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.603/3.222, allocations: 0 / 0.5323 GB, free: 78.61 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat does not exist to compare? outputFormat=mat