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.001578/0.001578, allocations: 103.6 kB / 21.19 MB, free: 0.5234 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.001767/0.001767, allocations: 213.9 kB / 24.48 MB, free: 3.836 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.496/1.496, allocations: 230.5 MB / 258.1 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.2353/0.2353, allocations: 46.95 MB / 361.6 MB, free: 3.934 MB / 286.1 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 0.002702/0.002702, allocations: 80.16 kB / 0.4974 GB, free: 7.07 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3331/0.3359, allocations: 66.09 MB / 0.5619 GB, free: 4.098 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003714/0.3396, allocations: 1.874 MB / 0.5637 GB, free: 2.215 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.3419, allocations: 1.127 MB / 0.5648 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001506/0.342, allocations: 0 / 0.5648 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007518/0.3428, allocations: 195.4 kB / 0.565 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004763/0.3432, allocations: 167.3 kB / 0.5652 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004773/0.3437, allocations: 175.5 kB / 0.5653 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004318/0.3441, allocations: 271.3 kB / 0.5656 GB, free: 296 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.3443, allocations: 17.8 kB / 0.5656 GB, free: 276 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001892/0.3444, allocations: 119.6 kB / 0.5657 GB, free: 156 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002141/0.3447, allocations: 115.6 kB / 0.5658 GB, free: 40 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.349e-05/0.3447, allocations: 16 kB / 0.5659 GB, free: 24 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002166/0.3449, allocations: 71.95 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.3451, allocations: 67.7 kB / 0.566 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.3452, allocations: 87.58 kB / 0.5661 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006654/0.3459, allocations: 293.6 kB / 0.5664 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3459, allocations: 0 / 0.5664 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3459, allocations: 0 / 0.5664 GB, free: 15.52 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.206e-05/0.3459, allocations: 3.984 kB / 0.5664 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.001368/0.3472, allocations: 0.601 MB / 0.5669 GB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3473, allocations: 8.031 kB / 0.567 GB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.3474, allocations: 28.8 kB / 0.567 GB, free: 14.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004632/0.3479, allocations: 217.6 kB / 0.5672 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.348, allocations: 174.8 kB / 0.5674 GB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.3481, allocations: 16.38 kB / 0.5674 GB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004249/0.3485, allocations: 245.3 kB / 0.5676 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.3485, allocations: 0 / 0.5676 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.917e-05/0.3485, allocations: 11.98 kB / 0.5676 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.749e-06/0.3486, allocations: 0 / 0.5676 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003864/0.3489, allocations: 181 kB / 0.5678 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009242/0.3499, allocations: 0.5279 MB / 0.5683 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004413/0.3503, allocations: 249 kB / 0.5685 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003751/0.3507, allocations: 151.7 kB / 0.5687 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.784e-05/0.3507, allocations: 11.98 kB / 0.5687 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006767/0.3514, allocations: 0.5099 MB / 0.5692 GB, free: 12.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=23): time 2.324e-06/0.3514, allocations: 0 / 0.5692 GB, free: 12.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=23): time 0.001102/0.3525, allocations: 0.6179 MB / 0.5698 GB, free: 11.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/0.3526, allocations: 195.9 kB / 0.57 GB, free: 11.31 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.3531, allocations: 333.8 kB / 0.5703 GB, free: 10.98 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.3531, allocations: 33.7 kB / 0.5703 GB, free: 10.94 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000129/0.3532, allocations: 136.6 kB / 0.5705 GB, free: 10.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.14e-05/0.3533, allocations: 47.59 kB / 0.5705 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.233e-05/0.3534, allocations: 57.69 kB / 0.5706 GB, free: 10.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002515/0.3536, allocations: 338.8 kB / 0.5709 GB, free: 10.36 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002168/0.3539, allocations: 149 kB / 0.571 GB, free: 10.19 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.3542, allocations: 260.2 kB / 0.5713 GB, free: 9.879 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004772/0.3547, allocations: 367 kB / 0.5716 GB, free: 9.453 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.3547, allocations: 0 / 0.5716 GB, free: 9.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006761/0.3553, allocations: 435.8 kB / 0.572 GB, free: 8.984 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.799e-05/0.3554, allocations: 101.1 kB / 0.5721 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.006e-06/0.3554, allocations: 0 / 0.5721 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.3555, allocations: 11.88 kB / 0.5722 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3556, allocations: 19.98 kB / 0.5722 GB, free: 8.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.3556, allocations: 7.938 kB / 0.5722 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.3557, allocations: 27.83 kB / 0.5722 GB, free: 8.801 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.3558, allocations: 20.2 kB / 0.5722 GB, free: 8.781 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.0002919/0.3561, allocations: 253.5 kB / 0.5725 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.065e-05/0.3561, allocations: 35.84 kB / 0.5725 GB, free: 8.473 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004666/0.3566, allocations: 238.6 kB / 0.5727 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.3566, allocations: 7.938 kB / 0.5727 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.3566, allocations: 0 / 0.5727 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.3566, allocations: 3.984 kB / 0.5727 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002733/0.3569, allocations: 209.1 kB / 0.5729 GB, free: 7.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3569, allocations: 4 kB / 0.5729 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.963e-05/0.3569, allocations: 8 kB / 0.573 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.3569, allocations: 0 / 0.573 GB, free: 7.957 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/0.357, allocations: 11.98 kB / 0.573 GB, free: 7.945 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.357, allocations: 3.938 kB / 0.573 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.357, allocations: 11.94 kB / 0.573 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008236/0.3578, allocations: 0.5279 MB / 0.5735 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.903e-05/0.3579, allocations: 27.81 kB / 0.5735 GB, free: 7.312 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.941e-05/0.3579, allocations: 16 kB / 0.5735 GB, free: 7.297 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.358, allocations: 19.98 kB / 0.5736 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.291e-05/0.3581, allocations: 24.03 kB / 0.5736 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.174e-05/0.3582, allocations: 16 kB / 0.5736 GB, free: 7.238 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000279/0.3584, allocations: 241.2 kB / 0.5738 GB, free: 7 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3584, allocations: 0 / 0.5738 GB, free: 7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003426/0.3588, allocations: 63.94 kB / 0.5739 GB, free: 6.938 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.001771/0.3606, allocations: 469.9 kB / 0.5743 GB, free: 6.629 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007775/0.3613, allocations: 0.5353 MB / 0.5749 GB, free: 6.02 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3613, allocations: 0 / 0.5749 GB, free: 6.02 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.3618, allocations: 363.2 kB / 0.5752 GB, free: 5.609 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.3621, allocations: 60.2 kB / 0.5753 GB, free: 5.551 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001037/0.3632, allocations: 0.578 MB / 0.5758 GB, free: 4.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001671/0.3633, allocations: 145.6 kB / 0.576 GB, free: 4.742 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.716e-05/0.3634, allocations: 19.44 kB / 0.576 GB, free: 4.727 MB / 414.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3634, allocations: 0 / 0.576 GB, free: 4.727 MB / 414.1 MB Notification: Performance of Templates: time 0.007171/0.3706, allocations: 3.668 MB / 0.5796 GB, free: 1.062 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 8.190759731922299]