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.005279/0.005279, allocations: 108.8 kB / 21.97 MB, free: 5.176 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.001412/0.001412, allocations: 220.6 kB / 25.29 MB, free: 3.203 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.403/1.403, allocations: 230.5 MB / 258.9 MB, free: 8.016 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.2203/0.2203, allocations: 46.93 MB / 362.3 MB, free: 4.203 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.002329/0.002329, allocations: 79.86 kB / 0.4982 GB, free: 7.277 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.306, allocations: 66.07 MB / 0.5627 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003478/0.3095, allocations: 1.933 MB / 0.5646 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.3115, allocations: 1.212 MB / 0.5658 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.3116, allocations: 7.938 kB / 0.5658 GB, free: 1.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006703/0.3123, allocations: 191.4 kB / 0.566 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004124/0.3127, allocations: 171.3 kB / 0.5661 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004148/0.3131, allocations: 163.6 kB / 0.5663 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000349/0.3135, allocations: 279.3 kB / 0.5666 GB, free: 312 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.3136, allocations: 25.78 kB / 0.5666 GB, free: 284 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.3137, allocations: 115.6 kB / 0.5667 GB, free: 168 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.3139, allocations: 127.4 kB / 0.5668 GB, free: 40 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.242e-05/0.314, allocations: 20 kB / 0.5668 GB, free: 20 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000174/0.3141, allocations: 67.95 kB / 0.5669 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.776e-05/0.3142, allocations: 63.81 kB / 0.567 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.3143, allocations: 111.4 kB / 0.5671 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003928/0.3147, allocations: 293.2 kB / 0.5673 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3147, allocations: 4 kB / 0.5674 GB, free: 15.5 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3147, allocations: 0 / 0.5674 GB, free: 15.5 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.3147, allocations: 0 / 0.5674 GB, free: 15.5 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.0009721/0.3157, allocations: 0.5972 MB / 0.5679 GB, free: 14.84 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.3157, allocations: 8.031 kB / 0.5679 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.898e-05/0.3158, allocations: 32.78 kB / 0.568 GB, free: 14.8 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.3162, allocations: 221.5 kB / 0.5682 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.3163, allocations: 97.66 kB / 0.5683 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.143e-05/0.3163, allocations: 16.38 kB / 0.5683 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.3167, allocations: 161.1 kB / 0.5684 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.3167, allocations: 0 / 0.5684 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.3167, allocations: 4 kB / 0.5685 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.3167, allocations: 4 kB / 0.5685 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.3169, allocations: 91.94 kB / 0.5685 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008491/0.3178, allocations: 0.5858 MB / 0.5691 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.3181, allocations: 151.9 kB / 0.5693 GB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.3183, allocations: 74.53 kB / 0.5693 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3183, allocations: 3.938 kB / 0.5693 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004843/0.3188, allocations: 437.1 kB / 0.5698 GB, free: 12.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.452e-06/0.3188, allocations: 0 / 0.5698 GB, free: 12.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008954/0.3197, allocations: 446.4 kB / 0.5702 GB, free: 12.29 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.3198, allocations: 221.6 kB / 0.5704 GB, free: 12.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.3202, allocations: 329.8 kB / 0.5707 GB, free: 11.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.3202, allocations: 37.7 kB / 0.5707 GB, free: 11.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.3203, allocations: 128.6 kB / 0.5709 GB, free: 11.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.646e-05/0.3204, allocations: 59.58 kB / 0.5709 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.738e-05/0.3205, allocations: 49.7 kB / 0.571 GB, free: 11.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3206, allocations: 338.8 kB / 0.5713 GB, free: 11.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.3208, allocations: 55.95 kB / 0.5713 GB, free: 11.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002103/0.321, allocations: 142.3 kB / 0.5715 GB, free: 10.84 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004184/0.3214, allocations: 366.9 kB / 0.5718 GB, free: 10.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.3214, allocations: 0 / 0.5718 GB, free: 10.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005429/0.3219, allocations: 346.4 kB / 0.5722 GB, free: 10.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.953e-05/0.322, allocations: 97.09 kB / 0.5723 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.322, allocations: 7.938 kB / 0.5723 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.322, allocations: 3.938 kB / 0.5723 GB, free: 9.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001021/0.3221, allocations: 23.92 kB / 0.5723 GB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.064e-05/0.3222, allocations: 4 kB / 0.5723 GB, free: 9.902 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.3223, allocations: 32.09 kB / 0.5723 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.048e-05/0.3223, allocations: 12 kB / 0.5723 GB, free: 9.859 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.0002428/0.3226, allocations: 269.7 kB / 0.5726 GB, free: 9.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.381e-05/0.3226, allocations: 27.86 kB / 0.5726 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003786/0.323, allocations: 208.9 kB / 0.5728 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.323, allocations: 0 / 0.5728 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.323, allocations: 0 / 0.5728 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.323, allocations: 11.94 kB / 0.5728 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002871/0.3233, allocations: 264.4 kB / 0.5731 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3233, allocations: 4 kB / 0.5731 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.88e-05/0.3233, allocations: 4 kB / 0.5731 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3233, allocations: 0 / 0.5731 GB, free: 9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.3234, allocations: 19.92 kB / 0.5731 GB, free: 8.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3234, allocations: 0 / 0.5731 GB, free: 8.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3234, allocations: 8 kB / 0.5731 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006778/0.324, allocations: 447.5 kB / 0.5735 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.38e-05/0.3241, allocations: 23.84 kB / 0.5736 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.285e-05/0.3241, allocations: 15.94 kB / 0.5736 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.3242, allocations: 15.98 kB / 0.5736 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.3243, allocations: 27.91 kB / 0.5736 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.3243, allocations: 8 kB / 0.5736 GB, free: 8.402 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002558/0.3246, allocations: 245.2 kB / 0.5739 GB, free: 8.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3246, allocations: 0 / 0.5739 GB, free: 8.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003234/0.3249, allocations: 71.89 kB / 0.5739 GB, free: 8.09 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.001523/0.3264, allocations: 441 kB / 0.5743 GB, free: 7.797 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005916/0.327, allocations: 358.2 kB / 0.5747 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.327, allocations: 0 / 0.5747 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.3274, allocations: 274.1 kB / 0.575 GB, free: 7.105 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.3277, allocations: 41.36 kB / 0.575 GB, free: 7.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008691/0.3286, allocations: 494.8 kB / 0.5755 GB, free: 6.539 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.329, allocations: 0.7597 MB / 0.5762 GB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.715e-05/0.3291, allocations: 27.42 kB / 0.5762 GB, free: 5.727 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3291, allocations: 4 kB / 0.5762 GB, free: 5.723 MB / 414.1 MB Notification: Performance of Templates: time 0.006401/0.3355, allocations: 3.587 MB / 0.5797 GB, free: 2.141 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 -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: 7.9372058981098235]