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.00137/0.00137, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001468/0.001468, allocations: 211.1 kB / 23.73 MB, free: 4.387 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.561/1.561, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.253/0.253, allocations: 46.96 MB / 360.9 MB, free: 4.121 MB / 286.1 MB " [Timeout remaining time 179] 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.002093/0.002093, allocations: 79.81 kB / 0.4966 GB, free: 7.227 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4035/0.4056, allocations: 66.03 MB / 0.5611 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004107/0.4097, allocations: 1.875 MB / 0.5629 GB, free: 2.258 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.412, allocations: 1.123 MB / 0.564 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.4121, allocations: 0 / 0.564 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007711/0.4129, allocations: 191.4 kB / 0.5642 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004867/0.4133, allocations: 171.3 kB / 0.5643 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004837/0.4138, allocations: 171.4 kB / 0.5645 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004311/0.4143, allocations: 279.3 kB / 0.5648 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.4144, allocations: 21.8 kB / 0.5648 GB, free: 320 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/0.4146, allocations: 111.7 kB / 0.5649 GB, free: 208 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.4149, allocations: 127.5 kB / 0.565 GB, free: 80 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.015e-05/0.4149, allocations: 19.94 kB / 0.565 GB, free: 60 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002073/0.4151, allocations: 76.03 kB / 0.5651 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.4152, allocations: 55.83 kB / 0.5652 GB, free: 15.93 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.4153, allocations: 95.42 kB / 0.5653 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004838/0.4158, allocations: 293.3 kB / 0.5655 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.4158, allocations: 0 / 0.5655 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.4158, allocations: 0 / 0.5655 GB, free: 15.55 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.4158, allocations: 0 / 0.5655 GB, free: 15.55 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.001249/0.4171, allocations: 0.601 MB / 0.5661 GB, free: 14.9 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.4171, allocations: 8.031 kB / 0.5661 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.4172, allocations: 28.8 kB / 0.5662 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.4177, allocations: 221.5 kB / 0.5664 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.4179, allocations: 170.8 kB / 0.5665 GB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.4179, allocations: 19.94 kB / 0.5666 GB, free: 14.39 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004485/0.4184, allocations: 248 kB / 0.5668 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.4184, allocations: 0 / 0.5668 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.696e-05/0.4184, allocations: 8 kB / 0.5668 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4184, allocations: 0 / 0.5668 GB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003352/0.4187, allocations: 181 kB / 0.567 GB, free: 13.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009315/0.4197, allocations: 0.5318 MB / 0.5675 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004339/0.4201, allocations: 245 kB / 0.5677 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002472/0.4203, allocations: 163.6 kB / 0.5679 GB, free: 12.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.4204, allocations: 4 kB / 0.5679 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006148/0.421, allocations: 0.5116 MB / 0.5684 GB, free: 12.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.134e-06/0.421, allocations: 0 / 0.5684 GB, free: 12.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001128/0.4221, allocations: 0.6255 MB / 0.569 GB, free: 11.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.4223, allocations: 199.8 kB / 0.5692 GB, free: 11.34 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.4227, allocations: 325.8 kB / 0.5695 GB, free: 11.02 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.4227, allocations: 37.69 kB / 0.5695 GB, free: 10.97 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.4228, allocations: 132.6 kB / 0.5697 GB, free: 10.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.248e-05/0.4229, allocations: 55.58 kB / 0.5697 GB, free: 10.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.641e-05/0.423, allocations: 45.7 kB / 0.5698 GB, free: 10.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.4232, allocations: 342.8 kB / 0.5701 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.4234, allocations: 145.1 kB / 0.5702 GB, free: 10.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000304/0.4237, allocations: 260.5 kB / 0.5705 GB, free: 9.918 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004813/0.4242, allocations: 362.6 kB / 0.5708 GB, free: 9.496 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.4242, allocations: 4 kB / 0.5708 GB, free: 9.492 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006595/0.4248, allocations: 439.5 kB / 0.5712 GB, free: 9.02 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.201e-05/0.4249, allocations: 105 kB / 0.5713 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4249, allocations: 0 / 0.5713 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.066e-05/0.4249, allocations: 4 kB / 0.5713 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.4251, allocations: 27.92 kB / 0.5714 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.4251, allocations: 4 kB / 0.5714 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001555/0.4252, allocations: 24.09 kB / 0.5714 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.4253, allocations: 16 kB / 0.5714 GB, free: 8.824 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.0002584/0.4255, allocations: 262 kB / 0.5717 GB, free: 8.543 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-05/0.4256, allocations: 35.8 kB / 0.5717 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004273/0.426, allocations: 238.7 kB / 0.5719 GB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.426, allocations: 4 kB / 0.5719 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.426, allocations: 0 / 0.5719 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.426, allocations: 0 / 0.5719 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002612/0.4263, allocations: 209.1 kB / 0.5721 GB, free: 8.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4263, allocations: 4 kB / 0.5721 GB, free: 8.008 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.336e-05/0.4263, allocations: 15.98 kB / 0.5721 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4263, allocations: 0 / 0.5721 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.297e-05/0.4264, allocations: 15.94 kB / 0.5722 GB, free: 7.977 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/0.4264, allocations: 3.938 kB / 0.5722 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.4264, allocations: 4 kB / 0.5722 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007722/0.4271, allocations: 0.5242 MB / 0.5727 GB, free: 7.383 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.339e-05/0.4272, allocations: 35.78 kB / 0.5727 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.417e-05/0.4273, allocations: 16.03 kB / 0.5727 GB, free: 7.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000118/0.4274, allocations: 23.92 kB / 0.5727 GB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.5e-05/0.4275, allocations: 19.97 kB / 0.5728 GB, free: 7.289 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.4275, allocations: 19.98 kB / 0.5728 GB, free: 7.27 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003038/0.4278, allocations: 241.2 kB / 0.573 GB, free: 7.031 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4278, allocations: 0 / 0.573 GB, free: 7.031 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003508/0.4282, allocations: 63.94 kB / 0.5731 GB, free: 6.969 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 (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.001708/0.4299, allocations: 474.1 kB / 0.5735 GB, free: 6.688 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007226/0.4306, allocations: 0.5305 MB / 0.574 GB, free: 6.086 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.4306, allocations: 4 kB / 0.5741 GB, free: 6.082 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004166/0.431, allocations: 367.1 kB / 0.5744 GB, free: 5.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/0.4314, allocations: 52.28 kB / 0.5745 GB, free: 5.621 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.4324, allocations: 0.5412 MB / 0.575 GB, free: 5.023 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001658/0.4326, allocations: 145.6 kB / 0.5751 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.4327, allocations: 29.92 kB / 0.5751 GB, free: 4.824 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.592e-05/0.4327, allocations: 23.44 kB / 0.5752 GB, free: 4.805 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4328, allocations: 0 / 0.5752 GB, free: 4.805 MB / 414.1 MB Notification: Performance of Templates: time 0.009151/0.4419, allocations: 3.829 MB / 0.5789 GB, free: 1.004 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/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: 5.566809598822147]