Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002013/0.002013, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 211.4 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.46/1.46, allocations: 230.6 MB / 258.3 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2393/0.2393, allocations: 46.97 MB / 361.6 MB, free: 4.039 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5020,variableFilter="time|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 71.88 kB / 0.4973 GB, free: 7.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3193/0.3214, allocations: 66.03 MB / 0.5618 GB, free: 4.172 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003551/0.3249, allocations: 1.868 MB / 0.5636 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.327, allocations: 1.131 MB / 0.5647 GB, free: 1.152 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.415e-05/0.3271, allocations: 3.938 kB / 0.5647 GB, free: 1.148 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007242/0.3278, allocations: 187.4 kB / 0.5649 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004189/0.3283, allocations: 175.4 kB / 0.5651 GB, free: 0.793 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000412/0.3287, allocations: 167 kB / 0.5652 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003468/0.329, allocations: 283.3 kB / 0.5655 GB, free: 364 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.3291, allocations: 17.81 kB / 0.5655 GB, free: 344 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001603/0.3293, allocations: 119.6 kB / 0.5656 GB, free: 224 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001693/0.3294, allocations: 119.6 kB / 0.5658 GB, free: 104 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.3295, allocations: 24 kB / 0.5658 GB, free: 80 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001591/0.3296, allocations: 75.89 kB / 0.5659 GB, free: 4 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.3298, allocations: 55.83 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.3299, allocations: 91.56 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004024/0.3303, allocations: 293.2 kB / 0.5663 GB, free: 15.58 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3303, allocations: 0 / 0.5663 GB, free: 15.58 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3303, allocations: 4 kB / 0.5663 GB, free: 15.57 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.061e-06/0.3303, allocations: 3.938 kB / 0.5663 GB, free: 15.57 MB / 414.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.0009786/0.3313, allocations: 0.5894 MB / 0.5669 GB, free: 14.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.3313, allocations: 16.03 kB / 0.5669 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.998e-05/0.3314, allocations: 28.8 kB / 0.5669 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.3318, allocations: 225.5 kB / 0.5671 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.332, allocations: 170.8 kB / 0.5673 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.332, allocations: 15.94 kB / 0.5673 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.3324, allocations: 233.3 kB / 0.5675 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.3324, allocations: 4 kB / 0.5675 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.3325, allocations: 8 kB / 0.5675 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.3325, allocations: 3.938 kB / 0.5675 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003/0.3328, allocations: 181 kB / 0.5677 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008095/0.3336, allocations: 0.5279 MB / 0.5682 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004103/0.334, allocations: 245 kB / 0.5685 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000232/0.3342, allocations: 163.7 kB / 0.5686 GB, free: 12.9 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.3342, allocations: 7.938 kB / 0.5686 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005573/0.3348, allocations: 0.5154 MB / 0.5691 GB, free: 12.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.463e-06/0.3348, allocations: 0 / 0.5691 GB, free: 12.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009929/0.3358, allocations: 0.6177 MB / 0.5697 GB, free: 11.61 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.3359, allocations: 195.8 kB / 0.5699 GB, free: 11.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003801/0.3363, allocations: 333.8 kB / 0.5702 GB, free: 11.04 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.3363, allocations: 33.7 kB / 0.5703 GB, free: 11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.3364, allocations: 132.6 kB / 0.5704 GB, free: 10.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.83e-05/0.3365, allocations: 59.58 kB / 0.5704 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-05/0.3366, allocations: 49.7 kB / 0.5705 GB, free: 10.75 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.3367, allocations: 338.8 kB / 0.5708 GB, free: 10.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002082/0.3369, allocations: 149 kB / 0.571 GB, free: 10.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002866/0.3372, allocations: 248.2 kB / 0.5712 GB, free: 9.949 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004596/0.3377, allocations: 371 kB / 0.5716 GB, free: 9.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3377, allocations: 4 kB / 0.5716 GB, free: 9.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006309/0.3383, allocations: 443.3 kB / 0.572 GB, free: 9.039 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.803e-05/0.3384, allocations: 101 kB / 0.5721 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.3384, allocations: 0 / 0.5721 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.3384, allocations: 4.219 kB / 0.5721 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.3386, allocations: 31.92 kB / 0.5721 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3386, allocations: 4 kB / 0.5721 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001333/0.3387, allocations: 23.88 kB / 0.5721 GB, free: 8.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.3387, allocations: 12 kB / 0.5721 GB, free: 8.848 MB / 414.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.0002499/0.339, allocations: 262 kB / 0.5724 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.73e-05/0.339, allocations: 35.98 kB / 0.5724 GB, free: 8.531 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004284/0.3395, allocations: 238.9 kB / 0.5727 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3395, allocations: 4 kB / 0.5727 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3395, allocations: 4 kB / 0.5727 GB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3395, allocations: 0 / 0.5727 GB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002602/0.3397, allocations: 209.1 kB / 0.5729 GB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3397, allocations: 0 / 0.5729 GB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-05/0.3398, allocations: 11.94 kB / 0.5729 GB, free: 8.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3398, allocations: 3.938 kB / 0.5729 GB, free: 8.016 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.3398, allocations: 19.92 kB / 0.5729 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.3398, allocations: 0 / 0.5729 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3398, allocations: 3.984 kB / 0.5729 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000799/0.3406, allocations: 0.5384 MB / 0.5734 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.718e-05/0.3407, allocations: 27.81 kB / 0.5735 GB, free: 7.367 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.3407, allocations: 15.94 kB / 0.5735 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.3408, allocations: 15.98 kB / 0.5735 GB, free: 7.336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.108e-05/0.3409, allocations: 20.06 kB / 0.5735 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.23e-05/0.3409, allocations: 19.94 kB / 0.5735 GB, free: 7.297 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002804/0.3412, allocations: 241.2 kB / 0.5738 GB, free: 7.059 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3412, allocations: 0 / 0.5738 GB, free: 7.059 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003241/0.3416, allocations: 67.92 kB / 0.5738 GB, free: 6.992 MB / 414.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,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 10 * 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.001654/0.3432, allocations: 467 kB / 0.5743 GB, free: 6.715 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007212/0.3439, allocations: 0.5388 MB / 0.5748 GB, free: 6.105 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3439, allocations: 0 / 0.5748 GB, free: 6.105 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004327/0.3444, allocations: 367.2 kB / 0.5751 GB, free: 5.691 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003522/0.3447, allocations: 55.66 kB / 0.5752 GB, free: 5.641 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009225/0.3456, allocations: 0.5412 MB / 0.5757 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.3458, allocations: 141.1 kB / 0.5759 GB, free: 4.879 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.941e-05/0.3459, allocations: 29.94 kB / 0.5759 GB, free: 4.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.733e-05/0.3459, allocations: 23.44 kB / 0.5759 GB, free: 4.828 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3459, allocations: 0 / 0.5759 GB, free: 4.828 MB / 414.1 MB Notification: Performance of Templates: time 0.008334/0.3543, allocations: 3.826 MB / 0.5796 GB, free: 1.035 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.062527219997719]