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.001286/0.001286, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001612/0.001612, allocations: 166.7 kB / 24.82 MB, free: 9.32 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.9638/0.9638, allocations: 177 MB / 205.1 MB, free: 5.465 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.2992/0.2992, allocations: 34.87 MB / 296.6 MB, free: 0.5156 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.493e-06/1.493e-06, allocations: 0 / 379.2 MB, free: 1.852 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.097e-05, allocations: 3.016 kB / 379.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002364/0.002385, allocations: 1.93 MB / 381.1 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.003833, allocations: 1.145 MB / 382.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.00394, allocations: 0 / 382.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005706/0.00451, allocations: 207.3 kB / 382.5 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003171/0.004827, allocations: 175.2 kB / 382.7 MB, free: 14.37 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.005157, allocations: 167.5 kB / 382.8 MB, free: 14.21 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.00542, allocations: 275.3 kB / 383.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.557e-05/0.005516, allocations: 25.8 kB / 383.1 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.005665, allocations: 159.6 kB / 383.3 MB, free: 13.76 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.005778, allocations: 99.75 kB / 383.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.005803, allocations: 20 kB / 383.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001208/0.005924, allocations: 71.89 kB / 383.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 6.887e-05/0.005993, allocations: 63.75 kB / 383.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 6.248e-05/0.006055, allocations: 75.83 kB / 383.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002334/0.006288, allocations: 231.1 kB / 383.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.006291, allocations: 0 / 383.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.006291, allocations: 0 / 383.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.006295, allocations: 4 kB / 383.8 MB, free: 13.2 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.0005896/0.006884, allocations: 0.6893 MB / 384.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.006919, allocations: 16.03 kB / 384.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.331e-05/0.006982, allocations: 44.75 kB / 384.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.007184, allocations: 228.3 kB / 384.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.694e-05/0.007271, allocations: 174.8 kB / 385 MB, free: 11.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.007288, allocations: 12.38 kB / 385 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.007482, allocations: 226.6 kB / 385.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.00749, allocations: 3.984 kB / 385.2 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.007502, allocations: 4 kB / 385.2 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.007508, allocations: 4 kB / 385.2 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.202e-05/0.00759, allocations: 137 kB / 385.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004698/0.00806, allocations: 0.623 MB / 386 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.008253, allocations: 230.5 kB / 386.2 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.646e-05/0.00834, allocations: 144.1 kB / 386.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.00836, allocations: 4 kB / 386.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.00866, allocations: 0.4918 MB / 386.8 MB, free: 9.797 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.894e-06/0.008661, allocations: 4 kB / 386.8 MB, free: 9.793 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004486/0.00911, allocations: 0.5475 MB / 387.4 MB, free: 9.184 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.009171, allocations: 195.9 kB / 387.6 MB, free: 8.949 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.009342, allocations: 312.1 kB / 387.9 MB, free: 8.621 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.00936, allocations: 33.69 kB / 387.9 MB, free: 8.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.633e-05/0.009436, allocations: 191.3 kB / 388.1 MB, free: 8.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.843e-05/0.009474, allocations: 55.56 kB / 388.2 MB, free: 8.336 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.206e-05/0.009526, allocations: 55.33 kB / 388.2 MB, free: 8.273 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.00965, allocations: 0.5156 MB / 388.7 MB, free: 7.746 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.061e-05/0.00971, allocations: 113.1 kB / 388.8 MB, free: 7.617 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.009828, allocations: 255.2 kB / 389.1 MB, free: 7.297 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.009998, allocations: 339.6 kB / 389.4 MB, free: 6.887 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.01, allocations: 0 / 389.4 MB, free: 6.887 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002599/0.01026, allocations: 395.5 kB / 389.8 MB, free: 6.457 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.346e-05/0.0103, allocations: 93.09 kB / 389.9 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.01031, allocations: 7.938 kB / 389.9 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.01032, allocations: 4 kB / 389.9 MB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.234e-05/0.01038, allocations: 19.98 kB / 389.9 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.01039, allocations: 7.938 kB / 389.9 MB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.812e-05/0.01046, allocations: 31.81 kB / 390 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.01047, allocations: 11.94 kB / 390 MB, free: 6.266 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.0001301/0.0106, allocations: 288.4 kB / 390.3 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.01064, allocations: 47.81 kB / 390.3 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001871/0.01083, allocations: 207 kB / 390.5 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.01083, allocations: 3.984 kB / 390.5 MB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.01084, allocations: 0 / 390.5 MB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.01084, allocations: 7.984 kB / 390.5 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.01099, allocations: 177.1 kB / 390.7 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.01099, allocations: 0 / 390.7 MB, free: 5.477 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.613e-05/0.01102, allocations: 7.938 kB / 390.7 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.01102, allocations: 11.98 kB / 390.7 MB, free: 5.457 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.01104, allocations: 8 kB / 390.7 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.01104, allocations: 4 kB / 390.7 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.01104, allocations: 0 / 390.7 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003405/0.01138, allocations: 0.5224 MB / 391.2 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.422e-05/0.0114, allocations: 23.86 kB / 391.3 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.01143, allocations: 8 kB / 391.3 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.521e-05/0.01149, allocations: 19.98 kB / 391.3 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.01154, allocations: 23.97 kB / 391.3 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.575e-05/0.01155, allocations: 8 kB / 391.3 MB, free: 4.773 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.831e-05/0.01165, allocations: 221.1 kB / 391.5 MB, free: 4.562 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01165, allocations: 0 / 391.5 MB, free: 4.562 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002585/0.01191, allocations: 67.89 kB / 391.6 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.0007373/0.01265, allocations: 392.2 kB / 392 MB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000306/0.01295, allocations: 0.4919 MB / 392.5 MB, free: 3.656 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.01295, allocations: 0 / 392.5 MB, free: 3.656 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.01311, allocations: 352.6 kB / 392.8 MB, free: 3.254 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000216/0.01333, allocations: 76.78 kB / 392.9 MB, free: 3.184 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004897/0.01382, allocations: 0.4997 MB / 393.4 MB, free: 2.629 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.401e-05/0.01386, allocations: 87.97 kB / 393.5 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.886e-05/0.01391, allocations: 22.09 kB / 393.5 MB, free: 2.5 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001359/0.01405, allocations: 150.2 kB / 393.7 MB, free: 2.352 MB / 362.7 MB Notification: Performance of SimCode: time 7.91e-07/0.01405, allocations: 0 / 393.7 MB, free: 2.352 MB / 362.7 MB Notification: Performance of Templates: time 0.005177/0.01923, allocations: 3.978 MB / 397.6 MB, free: 14.43 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.031435198150575]