Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001592/0.001592, allocations: 110.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00174/0.00174, allocations: 217.4 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 230.2 MB / 257.8 MB, free: 8.492 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2232/0.2232, allocations: 46.89 MB / 361.1 MB, free: 4.637 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-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00233/0.00233, allocations: 75.88 kB / 0.4967 GB, free: 7.832 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2837, allocations: 65.99 MB / 0.5612 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003447/0.2871, allocations: 1.926 MB / 0.5631 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002001/0.2891, allocations: 1.216 MB / 0.5643 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.652e-05/0.2892, allocations: 7.938 kB / 0.5643 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006445/0.2898, allocations: 183.4 kB / 0.5644 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004042/0.2903, allocations: 171.3 kB / 0.5646 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000395/0.2906, allocations: 163.6 kB / 0.5648 GB, free: 1.328 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003518/0.291, allocations: 279.3 kB / 0.565 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.744e-05/0.2911, allocations: 21.69 kB / 0.565 GB, free: 1.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000153/0.2912, allocations: 111.6 kB / 0.5652 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001871/0.2914, allocations: 127.5 kB / 0.5653 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.618e-05/0.2915, allocations: 16 kB / 0.5653 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001437/0.2916, allocations: 71.91 kB / 0.5654 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-05/0.2917, allocations: 59.81 kB / 0.5654 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001206/0.2918, allocations: 107.4 kB / 0.5655 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003835/0.2922, allocations: 297.5 kB / 0.5658 GB, free: 268 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.2922, allocations: 0 / 0.5658 GB, free: 268 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2922, allocations: 0 / 0.5658 GB, free: 268 kB / 398.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2922, allocations: 4 kB / 0.5658 GB, free: 264 kB / 398.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.001023/0.2932, allocations: 0.6725 MB / 0.5665 GB, free: 15.51 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2933, allocations: 8.031 kB / 0.5665 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.607e-05/0.2934, allocations: 28.8 kB / 0.5665 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.2938, allocations: 283.8 kB / 0.5668 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.2939, allocations: 89.67 kB / 0.5669 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.2939, allocations: 12.38 kB / 0.5669 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000339/0.2942, allocations: 165.2 kB / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.2942, allocations: 0 / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.2943, allocations: 8 kB / 0.567 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2943, allocations: 7.938 kB / 0.567 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000245/0.2945, allocations: 87.88 kB / 0.5671 GB, free: 14.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008818/0.2954, allocations: 0.6102 MB / 0.5677 GB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003528/0.2957, allocations: 159.9 kB / 0.5679 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.2959, allocations: 74.53 kB / 0.5679 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.403e-05/0.2959, allocations: 0 / 0.5679 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005052/0.2965, allocations: 441.1 kB / 0.5684 GB, free: 13.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.513e-06/0.2965, allocations: 0 / 0.5684 GB, free: 13.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009182/0.2974, allocations: 438.9 kB / 0.5688 GB, free: 12.87 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.2975, allocations: 221.5 kB / 0.569 GB, free: 12.6 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003795/0.2979, allocations: 334.5 kB / 0.5693 GB, free: 12.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.314e-05/0.2979, allocations: 41.7 kB / 0.5694 GB, free: 12.22 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.298, allocations: 124.7 kB / 0.5695 GB, free: 12.09 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.056e-05/0.2981, allocations: 59.58 kB / 0.5695 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.706e-05/0.2982, allocations: 49.69 kB / 0.5696 GB, free: 11.98 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2984, allocations: 338.8 kB / 0.5699 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.2985, allocations: 59.95 kB / 0.57 GB, free: 11.58 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002298/0.2987, allocations: 146.2 kB / 0.5701 GB, free: 11.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004486/0.2992, allocations: 355 kB / 0.5704 GB, free: 10.99 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.2992, allocations: 4 kB / 0.5704 GB, free: 10.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005866/0.2998, allocations: 358.2 kB / 0.5708 GB, free: 10.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.327e-05/0.2998, allocations: 97.09 kB / 0.5709 GB, free: 10.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.2999, allocations: 3.938 kB / 0.5709 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.2999, allocations: 4 kB / 0.5709 GB, free: 10.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.3, allocations: 23.92 kB / 0.5709 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3, allocations: 4 kB / 0.5709 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001381/0.3001, allocations: 23.88 kB / 0.5709 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.432e-05/0.3001, allocations: 20.22 kB / 0.5709 GB, free: 10.42 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.0002553/0.3004, allocations: 261.5 kB / 0.5712 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.3005, allocations: 31.86 kB / 0.5712 GB, free: 10.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003886/0.3008, allocations: 201 kB / 0.5714 GB, free: 9.891 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.3008, allocations: 4.125 kB / 0.5714 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.3009, allocations: 0 / 0.5714 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/0.3009, allocations: 7.984 kB / 0.5714 GB, free: 9.879 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003206/0.3012, allocations: 301.4 kB / 0.5717 GB, free: 9.535 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.3012, allocations: 4 kB / 0.5717 GB, free: 9.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.432e-05/0.3012, allocations: 7.938 kB / 0.5717 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.185e-06/0.3012, allocations: 0 / 0.5717 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.3012, allocations: 15.92 kB / 0.5717 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3012, allocations: 0 / 0.5717 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3013, allocations: 4 kB / 0.5717 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007129/0.302, allocations: 447.6 kB / 0.5722 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.918e-05/0.3021, allocations: 96.95 kB / 0.5723 GB, free: 8.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.871e-05/0.3021, allocations: 23.94 kB / 0.5723 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.3022, allocations: 19.92 kB / 0.5723 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.3023, allocations: 15.98 kB / 0.5723 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/0.3023, allocations: 12 kB / 0.5723 GB, free: 8.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002688/0.3026, allocations: 241.9 kB / 0.5726 GB, free: 8.602 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3026, allocations: 4 kB / 0.5726 GB, free: 8.598 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000325/0.3029, allocations: 71.88 kB / 0.5726 GB, free: 8.527 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 (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.001547/0.3045, allocations: 425 kB / 0.573 GB, free: 8.258 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005952/0.3051, allocations: 354.4 kB / 0.5734 GB, free: 7.875 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.3051, allocations: 4.062 kB / 0.5734 GB, free: 7.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.3054, allocations: 270.1 kB / 0.5736 GB, free: 7.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.3058, allocations: 60.41 kB / 0.5737 GB, free: 7.512 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008189/0.3066, allocations: 473 kB / 0.5742 GB, free: 7.016 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004094/0.307, allocations: 0.7518 MB / 0.5749 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.185e-05/0.3071, allocations: 25.84 kB / 0.5749 GB, free: 6.211 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.448e-05/0.3072, allocations: 19.44 kB / 0.5749 GB, free: 6.195 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3072, allocations: 0 / 0.5749 GB, free: 6.195 MB / 414.1 MB Notification: Performance of Templates: time 0.007736/0.3149, allocations: 3.568 MB / 0.5784 GB, free: 2.641 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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: 4.832288198173046]