Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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.00112/0.00112, allocations: 171.6 kB / 16.15 MB, free: 5.652 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 205.4 MB / 222.3 MB, free: 9.016 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.0007496/0.0007499, allocations: 86.17 kB / 270.7 MB, free: 8.238 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.08232/0.08232, allocations: 12.59 MB / 331.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003909/0.0003911, allocations: 16 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09626/0.09666, allocations: 50.36 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.002111/0.09884, allocations: 1.613 MB / 444.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001419/0.1003, allocations: 0.9637 MB / 445.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.1005, allocations: 3.938 kB / 445.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005709/0.101, allocations: 151.6 kB / 445.9 MB, free: 12.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.1013, allocations: 103.6 kB / 446 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005265/0.1019, allocations: 167.7 kB / 446.1 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002132/0.1021, allocations: 187.5 kB / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1022, allocations: 33.89 kB / 446.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.1023, allocations: 67.58 kB / 446.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001124/0.1024, allocations: 67.69 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.1025, allocations: 4 kB / 446.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.1026, allocations: 47.91 kB / 446.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.008e-05/0.1027, allocations: 31.84 kB / 446.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.662e-05/0.1028, allocations: 97.19 kB / 446.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002272/0.103, allocations: 203.3 kB / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.103, allocations: 0 / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.103, allocations: 0 / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.103, allocations: 0 / 446.9 MB, free: 11.58 MB / 298.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.0006476/0.1037, allocations: 496.2 kB / 447.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1037, allocations: 8.031 kB / 447.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.192e-05/0.1038, allocations: 42.73 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.635e-05/0.1038, allocations: 28.66 kB / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/0.1041, allocations: 270.7 kB / 447.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.1041, allocations: 4.375 kB / 447.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.1042, allocations: 19.86 kB / 447.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.1045, allocations: 179.4 kB / 447.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.1045, allocations: 0 / 447.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.1045, allocations: 0 / 447.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1045, allocations: 4 kB / 447.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.834e-05/0.1046, allocations: 39.92 kB / 447.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004233/0.1051, allocations: 363.3 kB / 448.3 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.1053, allocations: 138.5 kB / 448.4 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.543e-05/0.1054, allocations: 59.41 kB / 448.5 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.1054, allocations: 4 kB / 448.5 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001378/0.1055, allocations: 75.33 kB / 448.5 MB, free: 9.633 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.284e-06/0.1056, allocations: 4 kB / 448.6 MB, free: 9.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003502/0.1059, allocations: 161.2 kB / 448.7 MB, free: 9.465 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.872e-05/0.106, allocations: 158.2 kB / 448.9 MB, free: 9.273 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002187/0.1062, allocations: 272.9 kB / 449.1 MB, free: 9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.1062, allocations: 30.08 kB / 449.2 MB, free: 8.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.002e-05/0.1063, allocations: 124.3 kB / 449.3 MB, free: 8.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.1063, allocations: 19.89 kB / 449.3 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.172e-06/0.1063, allocations: 4 kB / 449.3 MB, free: 8.816 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.999e-05/0.1064, allocations: 326.8 kB / 449.6 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.681e-05/0.1065, allocations: 23.98 kB / 449.6 MB, free: 8.465 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.257e-05/0.1066, allocations: 87.66 kB / 449.7 MB, free: 8.352 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001146/0.1067, allocations: 90.22 kB / 449.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1067, allocations: 4 kB / 449.8 MB, free: 8.238 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000193/0.1069, allocations: 141.2 kB / 450 MB, free: 8.094 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.1069, allocations: 7.984 kB / 450 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1069, allocations: 4 kB / 450 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1069, allocations: 0 / 450 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.792e-05/0.107, allocations: 12 kB / 450 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.107, allocations: 7.984 kB / 450 MB, free: 8.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.75e-05/0.1071, allocations: 20.05 kB / 450 MB, free: 8.043 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.1071, allocations: 8 kB / 450 MB, free: 8.035 MB / 298.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.888e-05/0.1072, allocations: 141.8 kB / 450.2 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.747e-05/0.1073, allocations: 81.34 kB / 450.2 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.909e-05/0.1074, allocations: 21.72 kB / 450.3 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.1074, allocations: 0 / 450.3 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1074, allocations: 8.078 kB / 450.3 MB, free: 7.773 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.1074, allocations: 7.938 kB / 450.3 MB, free: 7.766 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.1076, allocations: 225.5 kB / 450.5 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1076, allocations: 0 / 450.5 MB, free: 7.496 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.815e-05/0.1076, allocations: 7.984 kB / 450.5 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1076, allocations: 7.938 kB / 450.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.14e-05/0.1076, allocations: 4 kB / 450.5 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.1077, allocations: 7.938 kB / 450.5 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1077, allocations: 0 / 450.5 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/0.1079, allocations: 171.3 kB / 450.7 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.844e-05/0.108, allocations: 112.9 kB / 450.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.108, allocations: 3.938 kB / 450.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.501e-05/0.1081, allocations: 11.98 kB / 450.8 MB, free: 7.129 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.176e-05/0.1081, allocations: 11.92 kB / 450.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.1081, allocations: 4 kB / 450.8 MB, free: 7.113 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001475/0.1083, allocations: 208.5 kB / 451 MB, free: 6.914 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.1083, allocations: 0 / 451 MB, free: 6.914 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002402/0.1085, allocations: 27.94 kB / 451.1 MB, free: 6.887 MB / 298.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/0.1097, allocations: 1.015 MB / 452.1 MB, free: 5.832 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001875/0.1099, allocations: 79.84 kB / 452.2 MB, free: 5.754 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.11, allocations: 0 / 452.2 MB, free: 5.754 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.098e-05/0.11, allocations: 19.98 kB / 452.2 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004195/0.1104, allocations: 85.12 kB / 452.3 MB, free: 5.648 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.1123, allocations: 2.055 MB / 454.3 MB, free: 3.453 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001842/0.1125, allocations: 0.74 MB / 455.1 MB, free: 2.684 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.828e-05/0.1126, allocations: 17.55 kB / 455.1 MB, free: 2.668 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.18e-05/0.1127, allocations: 55.42 kB / 455.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1127, allocations: 0 / 455.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01752/0.1302, allocations: 4.393 MB / 459.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003102/0.1306, allocations: 275.5 kB / 459.8 MB, free: 13.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.834/1.965, allocations: 0 / 459.8 MB, free: 13.84 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat does not exist to compare? outputFormat=mat