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.001357/0.001357, allocations: 89.14 kB / 20.68 MB, free: 1.02 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.001442/0.001442, allocations: 158.8 kB / 23.95 MB, free: 4.152 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.527/1.527, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.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.2134/0.2134, allocations: 34.28 MB / 294.8 MB, free: 14.51 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 1.583e-06/1.583e-06, allocations: 0 / 442.6 MB, free: 5.312 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.97e-05/3.128e-05, allocations: 2.281 kB / 442.6 MB, free: 5.309 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003456/0.003488, allocations: 1.876 MB / 444.5 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.00569, allocations: 1.129 MB / 445.6 MB, free: 2.281 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.005807, allocations: 8 kB / 445.7 MB, free: 2.273 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007325/0.006539, allocations: 187.3 kB / 445.8 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004582/0.006998, allocations: 171.3 kB / 446 MB, free: 1.922 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004555/0.007453, allocations: 171.4 kB / 446.2 MB, free: 1.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003812/0.007834, allocations: 287.2 kB / 446.5 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.00795, allocations: 21.8 kB / 446.5 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.008173, allocations: 147.7 kB / 446.6 MB, free: 1.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001799/0.008353, allocations: 107.7 kB / 446.7 MB, free: 1.203 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.572e-05/0.008398, allocations: 20 kB / 446.7 MB, free: 1.184 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.008565, allocations: 71.84 kB / 446.8 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.008682, allocations: 67.75 kB / 446.9 MB, free: 1.047 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.008794, allocations: 67.83 kB / 446.9 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004571/0.009251, allocations: 295.1 kB / 447.2 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.009255, allocations: 0 / 447.2 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.009256, allocations: 4 kB / 447.2 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.009267, allocations: 0 / 447.2 MB, free: 0.6875 MB / 366.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.001113/0.01038, allocations: 0.5933 MB / 447.8 MB, free: 40 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.01042, allocations: 8.031 kB / 447.8 MB, free: 32 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2291/0.2396, allocations: 38.31 kB / 447.9 MB, free: 19.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006219/0.2402, allocations: 221.3 kB / 448.1 MB, free: 19.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.2403, allocations: 170.6 kB / 448.3 MB, free: 19.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.545e-05/0.2404, allocations: 16.88 kB / 448.3 MB, free: 19.2 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004351/0.2408, allocations: 236.8 kB / 448.5 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.2408, allocations: 1.031 kB / 448.5 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.2408, allocations: 11.16 kB / 448.5 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.155e-06/0.2408, allocations: 7.266 kB / 448.5 MB, free: 19.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00028/0.2411, allocations: 171.8 kB / 448.7 MB, free: 18.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007852/0.2419, allocations: 0.5226 MB / 449.2 MB, free: 18.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.2423, allocations: 244.1 kB / 449.5 MB, free: 18.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001991/0.2425, allocations: 162.3 kB / 449.6 MB, free: 18.22 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.2425, allocations: 6.188 kB / 449.6 MB, free: 18.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000519/0.243, allocations: 0.5158 MB / 450.1 MB, free: 17.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.094e-06/0.243, allocations: 0 / 450.1 MB, free: 17.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009353/0.2439, allocations: 0.6217 MB / 450.8 MB, free: 17.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.244, allocations: 193.1 kB / 450.9 MB, free: 17.07 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003738/0.2444, allocations: 332.8 kB / 451.3 MB, free: 16.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.441e-05/0.2444, allocations: 31.39 kB / 451.3 MB, free: 16.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.259e-05/0.2445, allocations: 135.9 kB / 451.4 MB, free: 16.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.411e-05/0.2445, allocations: 54.44 kB / 451.5 MB, free: 16.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.465e-05/0.2446, allocations: 47.91 kB / 451.5 MB, free: 16.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.74e-05/0.2447, allocations: 343.4 kB / 451.9 MB, free: 16.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.2448, allocations: 147 kB / 452 MB, free: 16.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.245, allocations: 250.9 kB / 452.3 MB, free: 15.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003435/0.2454, allocations: 377.1 kB / 452.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2454, allocations: 4.047 kB / 452.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005334/0.2459, allocations: 436.1 kB / 453.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.047e-05/0.246, allocations: 97.8 kB / 453.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.246, allocations: 1.156 kB / 453.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.246, allocations: 5.234 kB / 453.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.2461, allocations: 24.66 kB / 453.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.2461, allocations: 5.891 kB / 453.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.2463, allocations: 27.05 kB / 453.2 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.2463, allocations: 14.66 kB / 453.2 MB, free: 15.23 MB / 366.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.000175/0.2465, allocations: 266.5 kB / 453.5 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.004e-05/0.2465, allocations: 35.97 kB / 453.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000387/0.2469, allocations: 236.9 kB / 453.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.2469, allocations: 2.219 kB / 453.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2469, allocations: 6.141 kB / 453.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.2469, allocations: 4.984 kB / 453.8 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.2471, allocations: 205.8 kB / 454 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2471, allocations: 0 / 454 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.756e-05/0.2472, allocations: 6.969 kB / 454 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2472, allocations: 2.656 kB / 454 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.724e-05/0.2472, allocations: 13.77 kB / 454 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.2472, allocations: 3.719 kB / 454 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2472, allocations: 1.188 kB / 454 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006651/0.2479, allocations: 0.53 MB / 454.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.2479, allocations: 35.34 kB / 454.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.679e-05/0.248, allocations: 12.91 kB / 454.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.2481, allocations: 23.44 kB / 454.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.366e-05/0.2482, allocations: 25.45 kB / 454.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.2482, allocations: 10.94 kB / 454.6 MB, free: 14.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002377/0.2485, allocations: 242.2 kB / 454.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2485, allocations: 1.375 kB / 454.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003423/0.2488, allocations: 66.59 kB / 454.9 MB, free: 14.13 MB / 366.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.001683/0.2505, allocations: 464.5 kB / 455.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006082/0.2511, allocations: 0.5262 MB / 455.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.2511, allocations: 1.188 kB / 455.9 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000321/0.2514, allocations: 367.3 kB / 456.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003816/0.2518, allocations: 65.66 kB / 456.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008922/0.2527, allocations: 0.546 MB / 456.9 MB, free: 12.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.2528, allocations: 140.2 kB / 457 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.77e-05/0.2529, allocations: 28.58 kB / 457 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.794e-05/0.253, allocations: 26.36 kB / 457.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.253, allocations: 0 / 457.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of Templates: time 0.009391/0.2624, allocations: 3.637 MB / 460.7 MB, free: 12.18 MB / 366.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/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_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: 5.116708882153034]