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.001121/0.001121, allocations: 96.14 kB / 15.87 MB, free: 16 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.00121/0.00121, allocations: 202.9 kB / 16.79 MB, free: 6.84 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.332/1.332, allocations: 205.1 MB / 222.6 MB, free: 4.738 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.2846/0.2846, allocations: 43.49 MB / 313.5 MB, free: 8.273 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.001319/0.001319, allocations: 75.11 kB / 382.1 MB, free: 8.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1055, allocations: 57.78 MB / 439.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.00288/0.1084, allocations: 1.935 MB / 441.9 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.1097, allocations: 0.9598 MB / 442.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.217e-05/0.1098, allocations: 7.938 kB / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000549/0.1104, allocations: 167.6 kB / 443 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.1106, allocations: 119.6 kB / 443.1 MB, free: 11.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.111, allocations: 155.8 kB / 443.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.1113, allocations: 259.3 kB / 443.5 MB, free: 10.92 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.1114, allocations: 37.66 kB / 443.5 MB, free: 10.89 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.1116, allocations: 95.61 kB / 443.6 MB, free: 10.79 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1117, allocations: 111.6 kB / 443.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.133e-05/0.1118, allocations: 8 kB / 443.8 MB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.1119, allocations: 51.97 kB / 443.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.313e-05/0.112, allocations: 55.77 kB / 443.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.1121, allocations: 107.4 kB / 444 MB, free: 10.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003088/0.1124, allocations: 267.4 kB / 444.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1125, allocations: 0 / 444.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1125, allocations: 0 / 444.2 MB, free: 10.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.1125, allocations: 0 / 444.2 MB, free: 10.2 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.0008237/0.1133, allocations: 0.6534 MB / 444.9 MB, free: 9.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.1134, allocations: 8.031 kB / 444.9 MB, free: 9.469 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.327e-05/0.1134, allocations: 50.69 kB / 444.9 MB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.768e-05/0.1135, allocations: 32.66 kB / 445 MB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002908/0.1138, allocations: 282.6 kB / 445.2 MB, free: 9.066 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.649e-05/0.1139, allocations: 93.42 kB / 445.3 MB, free: 8.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.35e-05/0.1139, allocations: 12 kB / 445.3 MB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002978/0.1142, allocations: 164.9 kB / 445.5 MB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1142, allocations: 0 / 445.5 MB, free: 8.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.1142, allocations: 15.98 kB / 445.5 MB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1142, allocations: 4 kB / 445.5 MB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002242/0.1145, allocations: 91.88 kB / 445.6 MB, free: 8.656 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000698/0.1152, allocations: 0.5947 MB / 446.2 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.1155, allocations: 175.9 kB / 446.4 MB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.1157, allocations: 98.48 kB / 446.5 MB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.1157, allocations: 7.984 kB / 446.5 MB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003797/0.1161, allocations: 429 kB / 446.9 MB, free: 7.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 2.696e-06/0.1161, allocations: 4 kB / 446.9 MB, free: 7.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007707/0.1169, allocations: 446.2 kB / 447.3 MB, free: 6.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.759e-05/0.117, allocations: 217.6 kB / 447.6 MB, free: 6.469 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.1173, allocations: 316.9 kB / 447.9 MB, free: 6.152 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.1173, allocations: 33.7 kB / 447.9 MB, free: 6.113 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.141e-05/0.1174, allocations: 144.6 kB / 448 MB, free: 5.969 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.149e-05/0.1174, allocations: 47.34 kB / 448.1 MB, free: 5.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.253e-05/0.1175, allocations: 57.7 kB / 448.1 MB, free: 5.859 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1176, allocations: 334.8 kB / 448.5 MB, free: 5.523 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.1177, allocations: 55.97 kB / 448.5 MB, free: 5.469 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.1179, allocations: 150.2 kB / 448.7 MB, free: 5.285 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.1183, allocations: 354.6 kB / 449 MB, free: 4.871 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.1183, allocations: 4 kB / 449 MB, free: 4.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004848/0.1188, allocations: 342.6 kB / 449.4 MB, free: 4.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.23e-05/0.1189, allocations: 93.09 kB / 449.4 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1189, allocations: 8.219 kB / 449.5 MB, free: 4.391 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.1189, allocations: 4 kB / 449.5 MB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.119, allocations: 27.92 kB / 449.5 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.119, allocations: 0 / 449.5 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.1192, allocations: 31.83 kB / 449.5 MB, free: 4.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1192, allocations: 8 kB / 449.5 MB, free: 4.32 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,$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.0002129/0.1194, allocations: 273.5 kB / 449.8 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/0.1195, allocations: 43.64 kB / 449.8 MB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.929e-05/0.1195, allocations: 25.7 kB / 449.9 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1195, allocations: 0 / 449.9 MB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/0.1196, allocations: 4 kB / 449.9 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1196, allocations: 0 / 449.9 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.1198, allocations: 289.4 kB / 450.1 MB, free: 3.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.882e-06/0.1198, allocations: 7.938 kB / 450.2 MB, free: 3.613 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.803e-05/0.1198, allocations: 11.88 kB / 450.2 MB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1199, allocations: 0 / 450.2 MB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/0.1199, allocations: 12 kB / 450.2 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.1199, allocations: 4 kB / 450.2 MB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1199, allocations: 4 kB / 450.2 MB, free: 3.582 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/0.1205, allocations: 431.6 kB / 450.6 MB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.1206, allocations: 104.7 kB / 450.7 MB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.246e-05/0.1206, allocations: 15.98 kB / 450.7 MB, free: 2.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001052/0.1207, allocations: 16 kB / 450.7 MB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.854e-05/0.1208, allocations: 23.91 kB / 450.8 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/0.1209, allocations: 12 kB / 450.8 MB, free: 2.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002175/0.1211, allocations: 236.4 kB / 451 MB, free: 2.695 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1211, allocations: 0 / 451 MB, free: 2.695 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.1214, allocations: 64 kB / 451.1 MB, free: 2.633 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 (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.001687/0.1231, allocations: 1.307 MB / 452.4 MB, free: 1.305 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000518/0.1236, allocations: 386.2 kB / 452.8 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1236, allocations: 0 / 452.8 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003911/0.124, allocations: 346.1 kB / 453.1 MB, free: 0.5156 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.1243, allocations: 44.42 kB / 453.1 MB, free: 484 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1636/0.2879, allocations: 2.875 MB / 456 MB, free: 47.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001745/0.2882, allocations: 0.7505 MB / 456.8 MB, free: 46.98 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001317/0.2883, allocations: 29.44 kB / 456.8 MB, free: 46.98 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.2884, allocations: 68.09 kB / 456.9 MB, free: 46.98 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.2884, allocations: 0 / 456.9 MB, free: 46.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0158/0.3042, allocations: 5.647 MB / 462.5 MB, free: 46.4 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001322/0.3044, allocations: 223.1 kB / 462.7 MB, free: 46.15 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.871/2.175, allocations: 0 / 462.7 MB, free: 46.15 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/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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches