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.001088/0.001088, allocations: 91.5 kB / 21.19 MB, free: 3.398 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.001299/0.001299, allocations: 164.5 kB / 24.56 MB, free: 36 kB / 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.982/0.982, allocations: 177 MB / 204.8 MB, free: 5.582 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.2545/0.2545, allocations: 34.87 MB / 296.3 MB, free: 0.5781 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.693e-06/1.693e-06, allocations: 0 / 378.8 MB, free: 2.102 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.723e-05/1.893e-05, allocations: 3.438 kB / 378.8 MB, free: 2.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002331/0.00235, allocations: 1.934 MB / 380.7 MB, free: 148 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.003719, allocations: 1.164 MB / 381.9 MB, free: 14.97 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.003824, allocations: 7.938 kB / 381.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005689/0.004393, allocations: 183.4 kB / 382 MB, free: 14.78 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000315/0.004708, allocations: 183.2 kB / 382.2 MB, free: 14.6 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.005024, allocations: 167.5 kB / 382.4 MB, free: 14.44 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002859/0.00531, allocations: 279.3 kB / 382.7 MB, free: 14.16 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.856e-05/0.005409, allocations: 21.8 kB / 382.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001568/0.005566, allocations: 155.6 kB / 382.8 MB, free: 13.99 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001255/0.005691, allocations: 107.7 kB / 382.9 MB, free: 13.89 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.005718, allocations: 16 kB / 383 MB, free: 13.87 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001303/0.005848, allocations: 67.89 kB / 383 MB, free: 13.8 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 7.661e-05/0.005925, allocations: 67.77 kB / 383.1 MB, free: 13.74 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 7.256e-05/0.005998, allocations: 71.83 kB / 383.2 MB, free: 13.67 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000272/0.00627, allocations: 239 kB / 383.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.006272, allocations: 0 / 383.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.006272, allocations: 0 / 383.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.006276, allocations: 0 / 383.4 MB, free: 13.44 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.0007953/0.007072, allocations: 0.6893 MB / 384.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.00711, allocations: 12.03 kB / 384.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.087e-05/0.007191, allocations: 44.75 kB / 384.1 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002467/0.007438, allocations: 228.3 kB / 384.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.471e-05/0.007533, allocations: 178.8 kB / 384.5 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.007553, allocations: 16.38 kB / 384.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.007796, allocations: 234.6 kB / 384.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.007805, allocations: 0 / 384.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.007822, allocations: 11.98 kB / 384.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.007831, allocations: 4 kB / 384.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.007947, allocations: 145 kB / 384.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005601/0.008508, allocations: 0.6614 MB / 385.6 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002105/0.008718, allocations: 242.5 kB / 385.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.383e-05/0.008812, allocations: 148.1 kB / 386 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.442e-05/0.008826, allocations: 3.984 kB / 386 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.009115, allocations: 0.5043 MB / 386.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.262e-06/0.009117, allocations: 0 / 386.5 MB, free: 9.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005066/0.009623, allocations: 0.571 MB / 387.1 MB, free: 9.297 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.009696, allocations: 195.9 kB / 387.2 MB, free: 9.062 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.009909, allocations: 316.3 kB / 387.6 MB, free: 8.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.009929, allocations: 33.7 kB / 387.6 MB, free: 8.691 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.219e-05/0.01002, allocations: 187.3 kB / 387.8 MB, free: 8.504 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.879e-05/0.01008, allocations: 59.58 kB / 387.8 MB, free: 8.445 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-05/0.01015, allocations: 51.36 kB / 387.9 MB, free: 8.387 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.01029, allocations: 0.5157 MB / 388.4 MB, free: 7.859 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.98e-05/0.01038, allocations: 121 kB / 388.5 MB, free: 7.723 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001521/0.01053, allocations: 255.3 kB / 388.8 MB, free: 7.402 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002329/0.01077, allocations: 355.3 kB / 389.1 MB, free: 6.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01077, allocations: 0 / 389.1 MB, free: 6.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003378/0.01111, allocations: 407.4 kB / 389.5 MB, free: 6.535 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.915e-05/0.01116, allocations: 97.31 kB / 389.6 MB, free: 6.422 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.01116, allocations: 4 kB / 389.6 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.01118, allocations: 4 kB / 389.6 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.811e-05/0.01126, allocations: 24.36 kB / 389.6 MB, free: 6.391 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.01127, allocations: 7.938 kB / 389.6 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.779e-05/0.01135, allocations: 27.81 kB / 389.7 MB, free: 6.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.609e-05/0.01137, allocations: 16 kB / 389.7 MB, free: 6.34 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.0001453/0.01151, allocations: 276.2 kB / 390 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.758e-05/0.01156, allocations: 51.81 kB / 390 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002196/0.01178, allocations: 218.8 kB / 390.2 MB, free: 5.758 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.01178, allocations: 7.938 kB / 390.2 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.01179, allocations: 0 / 390.2 MB, free: 5.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.01179, allocations: 7.922 kB / 390.2 MB, free: 5.742 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.01195, allocations: 216.5 kB / 390.4 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.01195, allocations: 0 / 390.4 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.443e-05/0.01198, allocations: 4 kB / 390.4 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.01198, allocations: 4 kB / 390.5 MB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.012, allocations: 8 kB / 390.5 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.012, allocations: 0 / 390.5 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.012, allocations: 4 kB / 390.5 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003851/0.01239, allocations: 0.5419 MB / 391 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.714e-05/0.01241, allocations: 28.03 kB / 391 MB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.174e-05/0.01244, allocations: 8 kB / 391 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.777e-05/0.0125, allocations: 19.98 kB / 391.1 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.973e-05/0.01256, allocations: 19.97 kB / 391.1 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.01258, allocations: 23.92 kB / 391.1 MB, free: 4.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000124/0.01271, allocations: 213.1 kB / 391.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01271, allocations: 0 / 391.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002334/0.01294, allocations: 71.89 kB / 391.4 MB, free: 4.496 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.000829/0.01377, allocations: 402.4 kB / 391.8 MB, free: 4.215 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.01414, allocations: 0.5037 MB / 392.3 MB, free: 3.633 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.01415, allocations: 0 / 392.3 MB, free: 3.633 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000249/0.01439, allocations: 364.3 kB / 392.6 MB, free: 3.219 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002609/0.01466, allocations: 66.59 kB / 392.7 MB, free: 3.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006327/0.01529, allocations: 0.5071 MB / 393.2 MB, free: 2.594 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.664e-05/0.01534, allocations: 91.91 kB / 393.3 MB, free: 2.484 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.106e-05/0.01541, allocations: 34.45 kB / 393.3 MB, free: 2.449 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.923e-05/0.01546, allocations: 24.5 kB / 393.4 MB, free: 2.422 MB / 362.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01546, allocations: 0 / 393.4 MB, free: 2.422 MB / 362.7 MB Notification: Performance of Templates: time 0.007575/0.02303, allocations: 3.915 MB / 397.3 MB, free: 14.55 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: 3.203198399860412]