Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.0008313/0.0008313, allocations: 83.67 kB / 21.7 MB, free: 2.852 MB / 18.57 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.0009405/0.0009405, allocations: 160.4 kB / 24.99 MB, free: 9.289 MB / 18.57 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 0.9547/0.9547, allocations: 177 MB / 205.2 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2635/0.2635, allocations: 34.86 MB / 296.6 MB, free: 0.5508 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_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_trunk_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 378.7 MB, free: 2.445 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.776e-05/2.95e-05, allocations: 3.016 kB / 378.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003547/0.003576, allocations: 1.943 MB / 380.7 MB, free: 492 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001922/0.005498, allocations: 1.159 MB / 381.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.005621, allocations: 0 / 381.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006968/0.006318, allocations: 195.3 kB / 382 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004164/0.006735, allocations: 179.2 kB / 382.2 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004097/0.007144, allocations: 159.5 kB / 382.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003667/0.007511, allocations: 283.2 kB / 382.6 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.007614, allocations: 17.81 kB / 382.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.007828, allocations: 155.7 kB / 382.8 MB, free: 14.35 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.008001, allocations: 103.8 kB / 382.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 4.075e-05/0.008042, allocations: 16 kB / 382.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.008198, allocations: 83.75 kB / 383 MB, free: 14.15 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 9.341e-05/0.008291, allocations: 63.83 kB / 383.1 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.008395, allocations: 75.77 kB / 383.1 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.008757, allocations: 231.2 kB / 383.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.008759, allocations: 0 / 383.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.00876, allocations: 0 / 383.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.699e-06/0.008765, allocations: 0 / 383.4 MB, free: 13.79 MB / 362.7 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.0008577/0.009623, allocations: 0.6932 MB / 384.1 MB, free: 13.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.00966, allocations: 8.031 kB / 384.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.009763, allocations: 48.75 kB / 384.1 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.01011, allocations: 236.2 kB / 384.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.01023, allocations: 166.8 kB / 384.5 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.01026, allocations: 16.38 kB / 384.5 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003255/0.01059, allocations: 234.6 kB / 384.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.0106, allocations: 0 / 384.8 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.01062, allocations: 4 kB / 384.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.01062, allocations: 0 / 384.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.0108, allocations: 145 kB / 384.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007522/0.01156, allocations: 0.6692 MB / 385.6 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000294/0.01185, allocations: 242.5 kB / 385.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.012, allocations: 152.1 kB / 386 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.01202, allocations: 4 kB / 386 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000406/0.01242, allocations: 0.5042 MB / 386.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.593e-06/0.01243, allocations: 112 / 386.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007246/0.01315, allocations: 0.5748 MB / 387 MB, free: 9.641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.737e-05/0.01324, allocations: 195.8 kB / 387.2 MB, free: 9.406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.01355, allocations: 316.3 kB / 387.5 MB, free: 9.074 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.01358, allocations: 33.7 kB / 387.6 MB, free: 9.035 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.01369, allocations: 183.3 kB / 387.7 MB, free: 8.852 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.847e-05/0.01375, allocations: 59.58 kB / 387.8 MB, free: 8.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.52e-05/0.01383, allocations: 55.36 kB / 387.9 MB, free: 8.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.01401, allocations: 0.5156 MB / 388.4 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001277/0.01414, allocations: 125.1 kB / 388.5 MB, free: 8.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.01433, allocations: 243.3 kB / 388.7 MB, free: 7.754 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.01462, allocations: 363.2 kB / 389.1 MB, free: 7.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.01463, allocations: 0 / 389.1 MB, free: 7.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004588/0.01509, allocations: 407.6 kB / 389.5 MB, free: 6.879 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.07e-05/0.01515, allocations: 97.09 kB / 389.6 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.01515, allocations: 0 / 389.6 MB, free: 6.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.01516, allocations: 7.938 kB / 389.6 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.997e-05/0.01526, allocations: 24.3 kB / 389.6 MB, free: 6.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.01527, allocations: 4 kB / 389.6 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001224/0.0154, allocations: 31.81 kB / 389.6 MB, free: 6.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.01542, allocations: 16 kB / 389.7 MB, free: 6.684 MB / 362.7 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.0001807/0.0156, allocations: 284.3 kB / 389.9 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.208e-05/0.01567, allocations: 47.81 kB / 390 MB, free: 6.328 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003099/0.01598, allocations: 218.8 kB / 390.2 MB, free: 6.098 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.01598, allocations: 4 kB / 390.2 MB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.01599, allocations: 0 / 390.2 MB, free: 6.094 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.01599, allocations: 3.938 kB / 390.2 MB, free: 6.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.01623, allocations: 212.5 kB / 390.4 MB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01623, allocations: 0 / 390.4 MB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.548e-05/0.01627, allocations: 8 kB / 390.4 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.01627, allocations: 0 / 390.4 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.0163, allocations: 19.98 kB / 390.4 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.0163, allocations: 3.938 kB / 390.4 MB, free: 5.816 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.0163, allocations: 4 kB / 390.5 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005956/0.0169, allocations: 0.5383 MB / 391 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.721e-05/0.01693, allocations: 15.86 kB / 391 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.866e-05/0.01698, allocations: 16 kB / 391 MB, free: 5.176 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.01708, allocations: 15.98 kB / 391 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.733e-05/0.01716, allocations: 27.91 kB / 391.1 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.01719, allocations: 11.94 kB / 391.1 MB, free: 5.121 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000192/0.01738, allocations: 225.1 kB / 391.3 MB, free: 4.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01738, allocations: 4 kB / 391.3 MB, free: 4.902 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003595/0.01774, allocations: 67.89 kB / 391.4 MB, free: 4.836 MB / 362.7 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.001188/0.01893, allocations: 406.6 kB / 391.8 MB, free: 4.551 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004941/0.01942, allocations: 0.4998 MB / 392.3 MB, free: 3.973 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.01942, allocations: 3.938 kB / 392.3 MB, free: 3.969 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.01971, allocations: 354.9 kB / 392.6 MB, free: 3.562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.02005, allocations: 67.86 kB / 392.7 MB, free: 3.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007545/0.02081, allocations: 0.5114 MB / 393.2 MB, free: 2.934 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.064e-05/0.02088, allocations: 95.91 kB / 393.3 MB, free: 2.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.713e-05/0.02095, allocations: 22.09 kB / 393.3 MB, free: 2.797 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.23e-05/0.02102, allocations: 28.48 kB / 393.3 MB, free: 2.766 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.02102, allocations: 0 / 393.3 MB, free: 2.766 MB / 362.7 MB Notification: Performance of Templates: time 0.007509/0.02853, allocations: 3.661 MB / 397 MB, free: 15.14 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9722530599683523]