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.001504/0.001504, allocations: 112.2 kB / 21.19 MB, free: 0.7578 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.001626/0.001626, allocations: 209.8 kB / 24.5 MB, free: 4.133 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.355/1.355, allocations: 230.6 MB / 258.3 MB, free: 8.031 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.2092/0.2092, allocations: 46.94 MB / 361.6 MB, free: 4.281 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.001939/0.001939, allocations: 71.89 kB / 0.4974 GB, free: 7.43 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2912, allocations: 66.03 MB / 0.5619 GB, free: 4.449 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003315/0.2945, allocations: 1.937 MB / 0.5638 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.2964, allocations: 1.209 MB / 0.5649 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.678e-05/0.2965, allocations: 4 kB / 0.5649 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006286/0.2971, allocations: 187.4 kB / 0.5651 GB, free: 1.098 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003836/0.2975, allocations: 175.3 kB / 0.5653 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.2979, allocations: 167.5 kB / 0.5654 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003432/0.2982, allocations: 283.3 kB / 0.5657 GB, free: 496 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.2983, allocations: 17.81 kB / 0.5657 GB, free: 476 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.2985, allocations: 119.6 kB / 0.5658 GB, free: 356 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.2986, allocations: 127.6 kB / 0.566 GB, free: 228 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.13e-05/0.2987, allocations: 16 kB / 0.566 GB, free: 212 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001495/0.2988, allocations: 75.88 kB / 0.5661 GB, free: 136 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.275e-05/0.2989, allocations: 59.83 kB / 0.5661 GB, free: 76 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.299, allocations: 115.4 kB / 0.5662 GB, free: 15.96 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.2994, allocations: 289.2 kB / 0.5665 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2994, allocations: 0 / 0.5665 GB, free: 15.68 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.2994, allocations: 0 / 0.5665 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.2994, allocations: 0 / 0.5665 GB, free: 15.68 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.0009294/0.3004, allocations: 0.605 MB / 0.5671 GB, free: 15.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.3004, allocations: 8.031 kB / 0.5671 GB, free: 15.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.32e-05/0.3005, allocations: 32.8 kB / 0.5671 GB, free: 14.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.3008, allocations: 221.5 kB / 0.5673 GB, free: 14.74 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.301, allocations: 174.8 kB / 0.5675 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.056e-05/0.301, allocations: 19.94 kB / 0.5675 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.3013, allocations: 155.7 kB / 0.5677 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3013, allocations: 3.984 kB / 0.5677 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.3013, allocations: 4 kB / 0.5677 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3013, allocations: 4 kB / 0.5677 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.3016, allocations: 91.88 kB / 0.5678 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008127/0.3024, allocations: 0.5859 MB / 0.5683 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003269/0.3027, allocations: 151.9 kB / 0.5685 GB, free: 13.43 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.3029, allocations: 70.55 kB / 0.5686 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.411e-05/0.3029, allocations: 4 kB / 0.5686 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004581/0.3033, allocations: 437.1 kB / 0.569 GB, free: 12.84 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.3033, allocations: 0 / 0.569 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008326/0.3042, allocations: 442.8 kB / 0.5694 GB, free: 12.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/0.3043, allocations: 225.5 kB / 0.5696 GB, free: 12.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.3047, allocations: 325.8 kB / 0.5699 GB, free: 11.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.3047, allocations: 37.69 kB / 0.57 GB, free: 11.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.548e-05/0.3048, allocations: 128.6 kB / 0.5701 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.262e-05/0.3048, allocations: 59.58 kB / 0.5701 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.493e-05/0.3049, allocations: 49.7 kB / 0.5702 GB, free: 11.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3051, allocations: 338.8 kB / 0.5705 GB, free: 11.17 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.3052, allocations: 59.95 kB / 0.5706 GB, free: 11.11 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.3054, allocations: 142.8 kB / 0.5707 GB, free: 10.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.3058, allocations: 366.5 kB / 0.5711 GB, free: 10.51 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3058, allocations: 0 / 0.5711 GB, free: 10.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000527/0.3063, allocations: 346.5 kB / 0.5714 GB, free: 10.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.227e-05/0.3064, allocations: 105.1 kB / 0.5715 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.3064, allocations: 4 kB / 0.5715 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.3064, allocations: 4 kB / 0.5715 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.538e-05/0.3065, allocations: 15.94 kB / 0.5715 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.3065, allocations: 7.984 kB / 0.5715 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000126/0.3067, allocations: 23.89 kB / 0.5715 GB, free: 9.969 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.3067, allocations: 12 kB / 0.5715 GB, free: 9.957 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.0002247/0.3069, allocations: 269.7 kB / 0.5718 GB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.307, allocations: 35.8 kB / 0.5718 GB, free: 9.633 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003486/0.3073, allocations: 205 kB / 0.572 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3073, allocations: 0 / 0.572 GB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.3073, allocations: 7.984 kB / 0.572 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.3073, allocations: 0 / 0.572 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002626/0.3076, allocations: 264.5 kB / 0.5723 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3076, allocations: 4 kB / 0.5723 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.986e-05/0.3076, allocations: 12.06 kB / 0.5723 GB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3076, allocations: 4 kB / 0.5723 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.3076, allocations: 12 kB / 0.5723 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.3076, allocations: 4 kB / 0.5723 GB, free: 9.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.3076, allocations: 3.984 kB / 0.5723 GB, free: 9.066 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006436/0.3083, allocations: 443.6 kB / 0.5728 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.3083, allocations: 27.8 kB / 0.5728 GB, free: 8.562 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.095e-05/0.3084, allocations: 12 kB / 0.5728 GB, free: 8.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.3085, allocations: 27.86 kB / 0.5728 GB, free: 8.523 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.902e-05/0.3086, allocations: 23.95 kB / 0.5728 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.3086, allocations: 8 kB / 0.5729 GB, free: 8.492 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002441/0.3088, allocations: 241.2 kB / 0.5731 GB, free: 8.254 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3088, allocations: 0 / 0.5731 GB, free: 8.254 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.3091, allocations: 79.88 kB / 0.5732 GB, free: 8.176 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.001516/0.3107, allocations: 439.5 kB / 0.5736 GB, free: 7.902 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005315/0.3112, allocations: 350 kB / 0.5739 GB, free: 7.523 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3112, allocations: 0 / 0.5739 GB, free: 7.523 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.3115, allocations: 274.1 kB / 0.5742 GB, free: 7.219 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.3118, allocations: 64.02 kB / 0.5742 GB, free: 7.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007903/0.3126, allocations: 490.8 kB / 0.5747 GB, free: 6.637 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003696/0.313, allocations: 0.7479 MB / 0.5754 GB, free: 5.855 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.891e-05/0.3131, allocations: 31.44 kB / 0.5755 GB, free: 5.828 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3131, allocations: 0 / 0.5755 GB, free: 5.828 MB / 414.1 MB Notification: Performance of Templates: time 0.005789/0.3189, allocations: 3.58 MB / 0.579 GB, free: 2.254 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 -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: 7.563769598025829]