Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.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/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 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(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay",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.0008349/0.0008348, allocations: 174.4 kB / 16.72 MB, free: 5.078 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.132/1.132, allocations: 205.4 MB / 222.9 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.0007121/0.000712, allocations: 83.92 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2716/0.2716, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.000334, allocations: 16 kB / 432.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09186, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001978/0.09388, allocations: 1.565 MB / 492.5 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00126/0.09516, allocations: 0.8902 MB / 493.4 MB, free: 8.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.09531, allocations: 4 kB / 493.4 MB, free: 8.316 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005339/0.09585, allocations: 171.6 kB / 493.5 MB, free: 8.148 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002721/0.09614, allocations: 111.6 kB / 493.7 MB, free: 8.039 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/0.09655, allocations: 135.8 kB / 493.8 MB, free: 7.906 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002935/0.09686, allocations: 235.4 kB / 494 MB, free: 7.676 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.097, allocations: 41.64 kB / 494.1 MB, free: 7.637 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.09717, allocations: 91.62 kB / 494.1 MB, free: 7.547 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.09732, allocations: 107.6 kB / 494.3 MB, free: 7.441 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.066e-05/0.09736, allocations: 8 kB / 494.3 MB, free: 7.434 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.0975, allocations: 47.97 kB / 494.3 MB, free: 7.387 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.09758, allocations: 47.83 kB / 494.4 MB, free: 7.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.09771, allocations: 133.2 kB / 494.5 MB, free: 7.203 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.09796, allocations: 203.7 kB / 494.7 MB, free: 7.004 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.09798, allocations: 4 kB / 494.7 MB, free: 7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09799, allocations: 4 kB / 494.7 MB, free: 6.996 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.098, allocations: 0 / 494.7 MB, free: 6.996 MB / 378.7 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.0007988/0.09881, allocations: 0.6028 MB / 495.3 MB, free: 6.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.09885, allocations: 16.02 kB / 495.3 MB, free: 6.305 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.644e-05/0.09891, allocations: 42.75 kB / 495.3 MB, free: 6.254 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.09899, allocations: 28.66 kB / 495.4 MB, free: 6.227 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003494/0.09935, allocations: 286.6 kB / 495.7 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.51e-05/0.09945, allocations: 97.42 kB / 495.8 MB, free: 5.793 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.0995, allocations: 19.94 kB / 495.8 MB, free: 5.773 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.09982, allocations: 157 kB / 495.9 MB, free: 5.602 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.09984, allocations: 3.938 kB / 495.9 MB, free: 5.598 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.09987, allocations: 11.94 kB / 495.9 MB, free: 5.586 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.09988, allocations: 4 kB / 495.9 MB, free: 5.582 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002284/0.1001, allocations: 95.91 kB / 496 MB, free: 5.488 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007273/0.1008, allocations: 0.6063 MB / 496.6 MB, free: 4.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003047/0.1012, allocations: 183.9 kB / 496.8 MB, free: 4.617 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001456/0.1013, allocations: 94.55 kB / 496.9 MB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.1013, allocations: 0 / 496.9 MB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.1017, allocations: 437 kB / 497.3 MB, free: 4.012 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.402e-06/0.1017, allocations: 0 / 497.3 MB, free: 4.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007537/0.1025, allocations: 442.3 kB / 497.8 MB, free: 3.555 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.194e-05/0.1026, allocations: 229.5 kB / 498 MB, free: 3.281 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.1029, allocations: 309 kB / 498.3 MB, free: 2.973 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.1029, allocations: 33.7 kB / 498.3 MB, free: 2.934 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.168e-05/0.103, allocations: 140.6 kB / 498.5 MB, free: 2.793 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.081e-05/0.1031, allocations: 51.34 kB / 498.5 MB, free: 2.742 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.628e-06/0.1031, allocations: 4 kB / 498.5 MB, free: 2.738 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1032, allocations: 338.8 kB / 498.9 MB, free: 2.398 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.1033, allocations: 59.97 kB / 498.9 MB, free: 2.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001794/0.1035, allocations: 142.2 kB / 499.1 MB, free: 2.164 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.1039, allocations: 362.6 kB / 499.4 MB, free: 1.742 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.1039, allocations: 0 / 499.4 MB, free: 1.742 MB / 378.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004743/0.1044, allocations: 354.8 kB / 499.8 MB, free: 1.371 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.046e-05/0.1045, allocations: 93.09 kB / 499.8 MB, free: 1.262 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1045, allocations: 8.219 kB / 499.9 MB, free: 1.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.1045, allocations: 4 kB / 499.9 MB, free: 1.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.346e-05/0.1046, allocations: 27.92 kB / 499.9 MB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.1046, allocations: 0 / 499.9 MB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.1047, allocations: 27.83 kB / 499.9 MB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.1048, allocations: 16 kB / 499.9 MB, free: 1.18 MB / 378.7 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.0002201/0.105, allocations: 265.5 kB / 0.4885 GB, free: 0.8906 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.041e-05/0.105, allocations: 31.66 kB / 0.4885 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.715e-05/0.1051, allocations: 29.7 kB / 0.4885 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.1051, allocations: 0 / 0.4885 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.1051, allocations: 0 / 0.4885 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1051, allocations: 4 kB / 0.4885 GB, free: 0.8281 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.1054, allocations: 289.3 kB / 0.4888 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1054, allocations: 0 / 0.4888 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.177e-05/0.1054, allocations: 11.92 kB / 0.4888 GB, free: 496 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.1054, allocations: 7.938 kB / 0.4888 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.1054, allocations: 16 kB / 0.4888 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1054, allocations: 0 / 0.4888 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1055, allocations: 0 / 0.4888 GB, free: 472 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1481/0.2535, allocations: 446.4 kB / 0.4893 GB, free: 43.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.493e-05/0.2536, allocations: 110 kB / 0.4894 GB, free: 43.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.055e-05/0.2537, allocations: 10.53 kB / 0.4894 GB, free: 43.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.2538, allocations: 20.05 kB / 0.4894 GB, free: 43.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.82e-05/0.2539, allocations: 20.55 kB / 0.4894 GB, free: 43.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.2539, allocations: 12.08 kB / 0.4894 GB, free: 43.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002056/0.2542, allocations: 234.5 kB / 0.4896 GB, free: 43.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2542, allocations: 0 / 0.4896 GB, free: 43.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003093/0.2545, allocations: 67.78 kB / 0.4897 GB, free: 43.2 MB / 378.7 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.001328/0.2558, allocations: 1.306 MB / 0.491 GB, free: 42.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004403/0.2563, allocations: 389.5 kB / 0.4914 GB, free: 42.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2563, allocations: 0 / 0.4914 GB, free: 42.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.2565, allocations: 347.2 kB / 0.4917 GB, free: 42.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.2569, allocations: 46.12 kB / 0.4917 GB, free: 42.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002003/0.2589, allocations: 1.525 MB / 0.4932 GB, free: 41.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001541/0.259, allocations: 0.7557 MB / 0.494 GB, free: 40.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.283e-05/0.2591, allocations: 66.22 kB / 0.494 GB, free: 40.74 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2592, allocations: 0 / 0.494 GB, free: 40.74 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.806/3.065, allocations: 3.978 MB / 0.4979 GB, free: 40.37 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches