Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay",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.0009039/0.000904, allocations: 96.86 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 172.9 kB / 16.58 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.614/1.614, allocations: 205.4 MB / 222.8 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4045/0.4045, allocations: 43.55 MB / 314.6 MB, free: 8.848 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005381/0.0005382, allocations: 16 kB / 384 MB, free: 7.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.1242, allocations: 58.86 MB / 442.9 MB, free: 12.95 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002329/0.1266, allocations: 1.565 MB / 444.4 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.128, allocations: 0.8786 MB / 445.3 MB, free: 10.49 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.1281, allocations: 3.938 kB / 445.3 MB, free: 10.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005527/0.1287, allocations: 163.6 kB / 445.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002664/0.129, allocations: 115.6 kB / 445.6 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004094/0.1294, allocations: 143.8 kB / 445.7 MB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002659/0.1297, allocations: 235.4 kB / 446 MB, free: 9.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.985e-05/0.1298, allocations: 33.59 kB / 446 MB, free: 9.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.1299, allocations: 103.6 kB / 446.1 MB, free: 9.707 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.1301, allocations: 103.7 kB / 446.2 MB, free: 9.605 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.687e-05/0.1301, allocations: 8 kB / 446.2 MB, free: 9.598 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001178/0.1302, allocations: 43.91 kB / 446.3 MB, free: 9.555 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.203e-05/0.1303, allocations: 51.81 kB / 446.3 MB, free: 9.504 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.596e-05/0.1304, allocations: 65.64 kB / 446.4 MB, free: 9.434 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.1306, allocations: 203.8 kB / 446.6 MB, free: 9.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1306, allocations: 0 / 446.6 MB, free: 9.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1306, allocations: 3.938 kB / 446.6 MB, free: 9.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.184e-06/0.1306, allocations: 4 kB / 446.6 MB, free: 9.227 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007916/0.1314, allocations: 0.6181 MB / 447.2 MB, free: 8.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.1315, allocations: 8.031 kB / 447.2 MB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.786e-05/0.1316, allocations: 50.55 kB / 447.2 MB, free: 8.469 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.761e-05/0.1316, allocations: 27.72 kB / 447.3 MB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.1319, allocations: 277.5 kB / 447.5 MB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.249e-05/0.132, allocations: 93.05 kB / 447.6 MB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.1321, allocations: 16 kB / 447.7 MB, free: 8.008 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.1324, allocations: 157.6 kB / 447.8 MB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.1324, allocations: 0 / 447.8 MB, free: 7.836 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.1324, allocations: 7.953 kB / 447.8 MB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1324, allocations: 8 kB / 447.8 MB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.1327, allocations: 95.86 kB / 447.9 MB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007905/0.1335, allocations: 0.6141 MB / 448.5 MB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.1338, allocations: 175.9 kB / 448.7 MB, free: 6.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001594/0.134, allocations: 90.55 kB / 448.8 MB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/0.134, allocations: 7.984 kB / 448.8 MB, free: 6.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004821/0.1345, allocations: 433.1 kB / 449.2 MB, free: 6.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.302e-06/0.1345, allocations: 0 / 449.2 MB, free: 6.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007748/0.1353, allocations: 438.4 kB / 449.6 MB, free: 5.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.1354, allocations: 229.5 kB / 449.9 MB, free: 5.523 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003283/0.1357, allocations: 312.9 kB / 450.2 MB, free: 5.211 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.1358, allocations: 33.7 kB / 450.2 MB, free: 5.172 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.992e-05/0.1359, allocations: 140.6 kB / 450.3 MB, free: 5.031 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.793e-05/0.1359, allocations: 51.36 kB / 450.4 MB, free: 4.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.128e-05/0.1359, allocations: 4 kB / 450.4 MB, free: 4.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1361, allocations: 342.8 kB / 450.7 MB, free: 4.633 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.1362, allocations: 56.09 kB / 450.8 MB, free: 4.578 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.1364, allocations: 146.6 kB / 450.9 MB, free: 4.398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002147/0.1367, allocations: 157.1 kB / 451.1 MB, free: 4.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1367, allocations: 3.953 kB / 451.1 MB, free: 4.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005374/0.1372, allocations: 346.7 kB / 451.4 MB, free: 3.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.937e-05/0.1373, allocations: 97.09 kB / 451.5 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.1373, allocations: 4 kB / 451.5 MB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1373, allocations: 4 kB / 451.5 MB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.1375, allocations: 23.92 kB / 451.6 MB, free: 3.715 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1375, allocations: 4 kB / 451.6 MB, free: 3.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001399/0.1376, allocations: 31.98 kB / 451.6 MB, free: 3.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.986e-05/0.1376, allocations: 12 kB / 451.6 MB, free: 3.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition5,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002441/0.1379, allocations: 269.4 kB / 451.9 MB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.138, allocations: 35.67 kB / 451.9 MB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.264e-05/0.138, allocations: 25.7 kB / 451.9 MB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.138, allocations: 0 / 451.9 MB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.138, allocations: 7.938 kB / 451.9 MB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.138, allocations: 0 / 451.9 MB, free: 3.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.1383, allocations: 289.5 kB / 452.2 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1383, allocations: 4 kB / 452.2 MB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.229e-05/0.1384, allocations: 15.83 kB / 452.2 MB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.1384, allocations: 0 / 452.2 MB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.1384, allocations: 8 kB / 452.2 MB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1384, allocations: 0 / 452.2 MB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1384, allocations: 4 kB / 452.2 MB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000624/0.1391, allocations: 447.5 kB / 452.7 MB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.465e-05/0.1392, allocations: 100.8 kB / 452.8 MB, free: 2.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.222e-05/0.1392, allocations: 15.95 kB / 452.8 MB, free: 2.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.1393, allocations: 19.98 kB / 452.8 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.253e-05/0.1394, allocations: 23.92 kB / 452.8 MB, free: 2.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.1394, allocations: 12 kB / 452.9 MB, free: 2.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002305/0.1397, allocations: 232.4 kB / 453.1 MB, free: 2.047 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1397, allocations: 0 / 453.1 MB, free: 2.047 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003418/0.14, allocations: 71.92 kB / 453.2 MB, free: 1.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * 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.001654/0.1417, allocations: 1.311 MB / 454.5 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005331/0.1422, allocations: 394.3 kB / 454.8 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.1423, allocations: 0 / 454.8 MB, free: 236 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2081/0.3504, allocations: 343.2 kB / 455.2 MB, free: 46.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004618/0.3509, allocations: 47.91 kB / 455.2 MB, free: 46.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.353, allocations: 1.489 MB / 456.7 MB, free: 45.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001585/0.3532, allocations: 0.7486 MB / 457.5 MB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.912e-05/0.3533, allocations: 33.8 kB / 457.5 MB, free: 44.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.3534, allocations: 66.23 kB / 457.6 MB, free: 44.97 MB / 382.1 MB Notification: Performance of SimCode: time 1.542e-06/0.3534, allocations: 0 / 457.6 MB, free: 44.97 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.369, allocations: 5.371 MB / 462.9 MB, free: 44.57 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.3692, allocations: 215.5 kB / 463.1 MB, free: 44.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.797/2.166, allocations: 7.875 kB / 463.2 MB, free: 44.32 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat does not exist to compare? outputFormat=mat