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.001584/0.001584, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 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.001767/0.001767, allocations: 209 kB / 25.13 MB, free: 3.605 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.409/1.409, allocations: 230.4 MB / 258.7 MB, free: 8.035 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.22/0.22, allocations: 46.94 MB / 362 MB, free: 4.211 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.002359/0.002359, allocations: 79.88 kB / 0.4978 GB, free: 7.383 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2706, allocations: 66.08 MB / 0.5623 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003325/0.2739, allocations: 1.918 MB / 0.5642 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.2759, allocations: 1.212 MB / 0.5654 GB, free: 1.113 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.627e-05/0.276, allocations: 7.938 kB / 0.5654 GB, free: 1.105 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000637/0.2766, allocations: 190.9 kB / 0.5656 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003902/0.277, allocations: 179.2 kB / 0.5657 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003792/0.2774, allocations: 159.6 kB / 0.5659 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003438/0.2777, allocations: 279.3 kB / 0.5662 GB, free: 324 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.2778, allocations: 33.78 kB / 0.5662 GB, free: 288 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001572/0.278, allocations: 115.6 kB / 0.5663 GB, free: 172 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.2781, allocations: 123.5 kB / 0.5664 GB, free: 48 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.804e-05/0.2782, allocations: 20 kB / 0.5664 GB, free: 28 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001669/0.2783, allocations: 67.95 kB / 0.5665 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.967e-05/0.2784, allocations: 63.81 kB / 0.5666 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/0.2786, allocations: 111.3 kB / 0.5667 GB, free: 15.79 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003773/0.2789, allocations: 289.4 kB / 0.5669 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.279, allocations: 4 kB / 0.5669 GB, free: 15.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.279, allocations: 0 / 0.5669 GB, free: 15.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.279, allocations: 0 / 0.5669 GB, free: 15.51 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.0009358/0.2799, allocations: 0.6011 MB / 0.5675 GB, free: 14.85 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.969e-05/0.2799, allocations: 8.031 kB / 0.5675 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.28, allocations: 28.8 kB / 0.5676 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.2804, allocations: 225.5 kB / 0.5678 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000146/0.2805, allocations: 174.8 kB / 0.5679 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.361e-05/0.2805, allocations: 16.38 kB / 0.568 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003922/0.2809, allocations: 274.3 kB / 0.5682 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.2809, allocations: 3.984 kB / 0.5682 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.281, allocations: 8 kB / 0.5682 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.281, allocations: 4 kB / 0.5682 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003073/0.2813, allocations: 177 kB / 0.5684 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008375/0.2821, allocations: 0.5781 MB / 0.569 GB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/0.2825, allocations: 245 kB / 0.5692 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002274/0.2827, allocations: 159.6 kB / 0.5694 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.503e-05/0.2828, allocations: 4 kB / 0.5694 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005325/0.2833, allocations: 0.51 MB / 0.5699 GB, free: 12.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.2833, allocations: 0 / 0.5699 GB, free: 12.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001019/0.2843, allocations: 0.6139 MB / 0.5705 GB, free: 11.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.2845, allocations: 221.6 kB / 0.5707 GB, free: 11.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003815/0.2848, allocations: 329.8 kB / 0.571 GB, free: 10.85 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.2849, allocations: 33.7 kB / 0.571 GB, free: 10.81 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.285, allocations: 132.6 kB / 0.5711 GB, free: 10.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.997e-05/0.2851, allocations: 55.59 kB / 0.5712 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.523e-05/0.2851, allocations: 53.69 kB / 0.5712 GB, free: 10.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.2853, allocations: 334.8 kB / 0.5716 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002187/0.2855, allocations: 149.1 kB / 0.5717 GB, free: 10.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000304/0.2858, allocations: 286.7 kB / 0.572 GB, free: 9.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004511/0.2863, allocations: 366.9 kB / 0.5723 GB, free: 9.293 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.2863, allocations: 0 / 0.5723 GB, free: 9.293 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006427/0.2869, allocations: 443.8 kB / 0.5728 GB, free: 8.816 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.098e-05/0.287, allocations: 97.09 kB / 0.5728 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.287, allocations: 3.938 kB / 0.5729 GB, free: 8.699 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.287, allocations: 4.188 kB / 0.5729 GB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.2871, allocations: 23.92 kB / 0.5729 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.2871, allocations: 4 kB / 0.5729 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.2873, allocations: 27.88 kB / 0.5729 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.2873, allocations: 15.98 kB / 0.5729 GB, free: 8.625 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.0002434/0.2875, allocations: 269.9 kB / 0.5732 GB, free: 8.336 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.999e-05/0.2876, allocations: 31.86 kB / 0.5732 GB, free: 8.305 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004056/0.288, allocations: 242.5 kB / 0.5734 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.288, allocations: 4 kB / 0.5734 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.288, allocations: 0 / 0.5734 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.288, allocations: 0 / 0.5734 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002909/0.2883, allocations: 272.4 kB / 0.5737 GB, free: 7.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2883, allocations: 4 kB / 0.5737 GB, free: 7.727 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.776e-05/0.2883, allocations: 8 kB / 0.5737 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.2883, allocations: 0 / 0.5737 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.2884, allocations: 15.94 kB / 0.5737 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.2884, allocations: 0 / 0.5737 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2884, allocations: 0 / 0.5737 GB, free: 7.703 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007629/0.2891, allocations: 0.5318 MB / 0.5743 GB, free: 7.109 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.633e-05/0.2892, allocations: 23.84 kB / 0.5743 GB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.2892, allocations: 15.94 kB / 0.5743 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.2893, allocations: 19.98 kB / 0.5743 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.621e-05/0.2894, allocations: 23.92 kB / 0.5743 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.163e-05/0.2895, allocations: 11.98 kB / 0.5743 GB, free: 7.016 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002699/0.2897, allocations: 241.2 kB / 0.5746 GB, free: 6.777 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2897, allocations: 0 / 0.5746 GB, free: 6.777 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003123/0.29, allocations: 75.89 kB / 0.5746 GB, free: 6.703 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.0015/0.2915, allocations: 432.2 kB / 0.5751 GB, free: 6.418 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006995/0.2922, allocations: 0.5236 MB / 0.5756 GB, free: 5.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2922, allocations: 0 / 0.5756 GB, free: 5.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004127/0.2926, allocations: 367.6 kB / 0.5759 GB, free: 5.406 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.293, allocations: 60.11 kB / 0.576 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008531/0.2938, allocations: 0.5373 MB / 0.5765 GB, free: 4.758 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.2942, allocations: 0.7595 MB / 0.5772 GB, free: 3.969 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.429e-05/0.2943, allocations: 29.92 kB / 0.5773 GB, free: 3.941 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.295e-05/0.2944, allocations: 23.42 kB / 0.5773 GB, free: 3.922 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2944, allocations: 0 / 0.5773 GB, free: 3.922 MB / 414.1 MB Notification: Performance of Templates: time 0.007796/0.3022, allocations: 3.608 MB / 0.5808 GB, free: 332 kB / 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/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-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.673467591870576]