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.001221/0.00122, allocations: 105.2 kB / 16.27 MB, free: 5.965 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.001331/0.001331, allocations: 189.4 kB / 17.19 MB, free: 5.602 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.649/1.649, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.232/0.232, allocations: 43.52 MB / 313.9 MB, free: 0.5312 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.001506/0.001506, allocations: 66.97 kB / 382.8 MB, free: 56.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.134, allocations: 57.79 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003748/0.1378, allocations: 1.875 MB / 442.5 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.1391, allocations: 0.9636 MB / 443.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.808e-05/0.1392, allocations: 0 / 443.5 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005465/0.1398, allocations: 187.4 kB / 443.6 MB, free: 3.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002503/0.1401, allocations: 131.5 kB / 443.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.1404, allocations: 171.3 kB / 443.9 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002343/0.1407, allocations: 271.3 kB / 444.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1408, allocations: 41.89 kB / 444.2 MB, free: 3.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.1409, allocations: 107.7 kB / 444.3 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001242/0.141, allocations: 115.6 kB / 444.5 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.404e-05/0.1411, allocations: 19.94 kB / 444.5 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.1412, allocations: 59.97 kB / 444.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.609e-05/0.1413, allocations: 63.81 kB / 444.6 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.097e-05/0.1414, allocations: 103.5 kB / 444.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002767/0.1417, allocations: 271.1 kB / 445 MB, free: 2.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1417, allocations: 4 kB / 445 MB, free: 2.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1417, allocations: 3.938 kB / 445 MB, free: 2.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1417, allocations: 0 / 445 MB, free: 2.438 MB / 318.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.0007249/0.1424, allocations: 0.661 MB / 445.6 MB, free: 1.703 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.1425, allocations: 15.89 kB / 445.6 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.378e-05/0.1425, allocations: 42.73 kB / 445.7 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.259e-05/0.1426, allocations: 28.66 kB / 445.7 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.1429, allocations: 274.8 kB / 446 MB, free: 1.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.427e-05/0.1429, allocations: 101.4 kB / 446.1 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.143, allocations: 19.98 kB / 446.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.1433, allocations: 157 kB / 446.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1433, allocations: 0 / 446.3 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.1433, allocations: 4 kB / 446.3 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.1433, allocations: 0 / 446.3 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.1435, allocations: 99.88 kB / 446.4 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006438/0.1442, allocations: 0.6101 MB / 447 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002687/0.1445, allocations: 171.9 kB / 447.1 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.1447, allocations: 94.53 kB / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.1447, allocations: 4 kB / 447.2 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005017/0.1452, allocations: 435.1 kB / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.1452, allocations: 0 / 447.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008034/0.146, allocations: 446.3 kB / 448.1 MB, free: 14.96 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.1462, allocations: 217.6 kB / 448.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003403/0.1465, allocations: 324.9 kB / 448.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1466, allocations: 33.7 kB / 448.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.1467, allocations: 128.6 kB / 448.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.878e-05/0.1467, allocations: 55.34 kB / 448.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.162e-05/0.1468, allocations: 45.7 kB / 448.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.147, allocations: 346.8 kB / 449.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.1471, allocations: 51.97 kB / 449.3 MB, free: 13.7 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.1473, allocations: 138.3 kB / 449.4 MB, free: 13.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004063/0.1477, allocations: 371.3 kB / 449.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1477, allocations: 0 / 449.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005065/0.1483, allocations: 346.1 kB / 450.1 MB, free: 12.74 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.772e-05/0.1483, allocations: 101.1 kB / 450.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1484, allocations: 4 kB / 450.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.1484, allocations: 224 / 450.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.1485, allocations: 31.92 kB / 450.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1485, allocations: 4 kB / 450.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000122/0.1486, allocations: 19.89 kB / 450.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.1487, allocations: 16 kB / 450.3 MB, free: 12.55 MB / 334.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,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002439/0.1489, allocations: 265.4 kB / 450.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.149e-05/0.149, allocations: 31.66 kB / 450.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.787e-05/0.149, allocations: 29.7 kB / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.1491, allocations: 4 kB / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1491, allocations: 0 / 450.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.924e-06/0.1491, allocations: 7.984 kB / 450.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.1493, allocations: 285.4 kB / 450.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.1494, allocations: 3.938 kB / 450.9 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.707e-05/0.1494, allocations: 4.188 kB / 450.9 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.1494, allocations: 7.984 kB / 450.9 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.519e-05/0.1494, allocations: 16 kB / 450.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.1494, allocations: 0 / 450.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.619e-06/0.1495, allocations: 3.984 kB / 450.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006182/0.1501, allocations: 451.3 kB / 451.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.019e-05/0.1502, allocations: 100.7 kB / 451.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.364e-05/0.1502, allocations: 16 kB / 451.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1503, allocations: 19.92 kB / 451.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.137e-05/0.1504, allocations: 23.98 kB / 451.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.1505, allocations: 11.98 kB / 451.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002397/0.1507, allocations: 228.5 kB / 451.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1507, allocations: 0 / 451.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003146/0.151, allocations: 67.98 kB / 451.8 MB, free: 10.86 MB / 334.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 (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.001957/0.153, allocations: 1.301 MB / 453.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000566/0.1536, allocations: 401.8 kB / 453.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.1536, allocations: 4.438 kB / 453.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003487/0.1539, allocations: 342.1 kB / 453.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.1543, allocations: 64.73 kB / 453.9 MB, free: 8.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003431/0.1577, allocations: 2.835 MB / 456.8 MB, free: 5.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.1581, allocations: 0.7518 MB / 457.5 MB, free: 4.957 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.419e-05/0.1582, allocations: 33.78 kB / 457.5 MB, free: 4.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.1583, allocations: 67.41 kB / 457.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1583, allocations: 0 / 457.6 MB, free: 4.863 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02321/0.1815, allocations: 6.031 MB / 463.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.889/8.071, allocations: 12.2 kB / 463.6 MB, free: 14.78 MB / 350.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/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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches