Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007616/0.0007613, allocations: 94.72 kB / 16.32 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007897/0.00079, allocations: 177.8 kB / 17.2 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 241.2 MB, free: 324 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002484/0.0002485, allocations: 12 kB / 300.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 50.42 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.002577/0.1198, allocations: 1.578 MB / 352.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.1215, allocations: 1.01 MB / 353.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001439/0.1217, allocations: 4 kB / 353.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006228/0.1223, allocations: 135.6 kB / 354.1 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002636/0.1226, allocations: 91.7 kB / 354.2 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005644/0.1232, allocations: 178.8 kB / 354.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.1234, allocations: 171.5 kB / 354.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1236, allocations: 33.55 kB / 354.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.1237, allocations: 63.7 kB / 354.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001168/0.1238, allocations: 75.62 kB / 354.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.1238, allocations: 0 / 354.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.124, allocations: 43.92 kB / 354.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.651e-05/0.124, allocations: 39.81 kB / 354.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.741e-05/0.1241, allocations: 57.58 kB / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002087/0.1243, allocations: 148 kB / 354.9 MB, free: 276 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.1243, allocations: 4 kB / 354.9 MB, free: 272 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1243, allocations: 0 / 354.9 MB, free: 272 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.1243, allocations: 0 / 354.9 MB, free: 272 kB / 286.1 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.0007246/0.1251, allocations: 0.4884 MB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.1251, allocations: 8.031 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.694e-05/0.1252, allocations: 38.56 kB / 355.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.592e-05/0.1252, allocations: 23.67 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000332/0.1256, allocations: 265.6 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1256, allocations: 4 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.908e-05/0.1256, allocations: 8 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.126, allocations: 166.7 kB / 355.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.126, allocations: 3.984 kB / 355.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.126, allocations: 11.92 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.126, allocations: 3.953 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.1261, allocations: 39.97 kB / 356 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005047/0.1267, allocations: 375.2 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002316/0.1269, allocations: 130.5 kB / 356.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.127, allocations: 59.36 kB / 356.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.1271, allocations: 4 kB / 356.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001789/0.1273, allocations: 83.33 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.1273, allocations: 0 / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003805/0.1277, allocations: 153.2 kB / 356.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.1278, allocations: 162.6 kB / 356.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003072/0.1281, allocations: 276.9 kB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.1281, allocations: 25.7 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.1282, allocations: 116.4 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.1282, allocations: 15.81 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.1283, allocations: 0 / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1284, allocations: 334.8 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.3e-05/0.1285, allocations: 23.98 kB / 357.7 MB, free: 13.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.1286, allocations: 83.72 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.481e-05/0.1287, allocations: 32.19 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1287, allocations: 4.031 kB / 357.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002155/0.1289, allocations: 141.2 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.1289, allocations: 7.953 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.129, allocations: 0 / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.129, allocations: 4 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.422e-05/0.1291, allocations: 15.94 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.1291, allocations: 3.938 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.377e-05/0.1292, allocations: 24.11 kB / 358 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.1292, allocations: 4 kB / 358 MB, free: 12.83 MB / 302.1 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.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.0001331/0.1293, allocations: 137.8 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.1295, allocations: 81.34 kB / 358.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.739e-05/0.1295, allocations: 29.66 kB / 358.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.1295, allocations: 0 / 358.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.1295, allocations: 4 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1295, allocations: 4.094 kB / 358.3 MB, free: 12.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002221/0.1298, allocations: 225.7 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1298, allocations: 3.984 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.994e-05/0.1298, allocations: 7.938 kB / 358.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.1298, allocations: 0 / 358.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1299, allocations: 8 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.1299, allocations: 3.953 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1299, allocations: 4 kB / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.1301, allocations: 171.3 kB / 358.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.573e-05/0.1303, allocations: 116.8 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.1303, allocations: 8 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.359e-05/0.1304, allocations: 4 kB / 358.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.1304, allocations: 11.94 kB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.565e-05/0.1304, allocations: 4.062 kB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.1306, allocations: 204.5 kB / 359 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1307, allocations: 0 / 359 MB, free: 11.7 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.1309, allocations: 28 kB / 359.1 MB, free: 11.68 MB / 302.1 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.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 (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.001456/0.1324, allocations: 1.026 MB / 360.1 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002449/0.1327, allocations: 71.91 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1327, allocations: 0 / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.475e-05/0.1328, allocations: 27.94 kB / 360.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.1332, allocations: 74.23 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001615/0.1349, allocations: 1.035 MB / 361.3 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.1352, allocations: 0.74 MB / 362 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.172e-05/0.1353, allocations: 21.53 kB / 362.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.296e-05/0.1354, allocations: 51.42 kB / 362.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of SimCode: time 8.22e-07/0.1354, allocations: 0 / 362.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01717/0.1526, allocations: 4.332 MB / 366.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.1528, allocations: 241.8 kB / 366.7 MB, free: 4.266 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/2.202, allocations: 0 / 366.7 MB, free: 4.266 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat does not exist to compare? outputFormat=mat