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.0009495/0.0009495, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 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.001019/0.001019, allocations: 168.7 kB / 24.91 MB, free: 9.188 MB / 18.57 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.073/1.073, allocations: 177.1 MB / 205.3 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.3388/0.3388, allocations: 34.26 MB / 296.1 MB, free: 0.7227 MB / 266.7 MB " [Timeout remaining time 180] 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 1.272e-06/1.272e-06, allocations: 0 / 325.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.612e-05/2.739e-05, allocations: 3.188 kB / 325.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003027/0.003055, allocations: 1.941 MB / 327.2 MB, free: 5.746 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001732/0.004787, allocations: 1.166 MB / 328.3 MB, free: 4.574 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001492/0.004936, allocations: 3.938 kB / 328.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006619/0.005598, allocations: 183.4 kB / 328.5 MB, free: 4.391 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000402/0.006, allocations: 179.2 kB / 328.7 MB, free: 4.215 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004395/0.006439, allocations: 163.5 kB / 328.8 MB, free: 4.055 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003664/0.006806, allocations: 287.8 kB / 329.1 MB, free: 3.773 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.00692, allocations: 26.39 kB / 329.2 MB, free: 3.746 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.007105, allocations: 155.6 kB / 329.3 MB, free: 3.594 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.007257, allocations: 103.7 kB / 329.4 MB, free: 3.492 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.587e-05/0.007293, allocations: 20 kB / 329.4 MB, free: 3.473 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001542/0.007447, allocations: 67.95 kB / 329.5 MB, free: 3.406 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.464e-05/0.007531, allocations: 63.75 kB / 329.6 MB, free: 3.344 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.308e-05/0.007604, allocations: 67.84 kB / 329.6 MB, free: 3.277 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002651/0.00787, allocations: 231.1 kB / 329.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.007873, allocations: 0 / 329.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.007874, allocations: 0 / 329.8 MB, free: 3.051 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.007878, allocations: 0 / 329.8 MB, free: 3.051 MB / 298.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.000631/0.008509, allocations: 0.5697 MB / 330.4 MB, free: 2.434 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.008542, allocations: 8.031 kB / 330.4 MB, free: 2.426 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.008609, allocations: 40.91 kB / 330.5 MB, free: 2.387 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.008883, allocations: 201.6 kB / 330.7 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-05/0.008976, allocations: 170.8 kB / 330.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.008998, allocations: 16.38 kB / 330.8 MB, free: 1.941 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002344/0.009232, allocations: 234 kB / 331.1 MB, free: 1.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.009239, allocations: 0 / 331.1 MB, free: 1.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.009253, allocations: 7.984 kB / 331.1 MB, free: 1.672 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.009259, allocations: 4 kB / 331.1 MB, free: 1.668 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.213e-05/0.009351, allocations: 136.5 kB / 331.2 MB, free: 1.516 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005007/0.009852, allocations: 422 kB / 331.6 MB, free: 1.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.01005, allocations: 247.6 kB / 331.9 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.938e-05/0.01012, allocations: 131.7 kB / 332 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.733e-05/0.01013, allocations: 8 kB / 332 MB, free: 0.625 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.01043, allocations: 0.4893 MB / 332.5 MB, free: 40 kB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.182e-06/0.01043, allocations: 4 kB / 332.5 MB, free: 36 kB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003528/0.01078, allocations: 476.6 kB / 333 MB, free: 15.51 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.472e-05/0.01086, allocations: 187.9 kB / 333.2 MB, free: 15.28 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.01102, allocations: 258.6 kB / 333.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.01104, allocations: 33.7 kB / 333.4 MB, free: 14.98 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.0111, allocations: 113.1 kB / 333.5 MB, free: 14.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.773e-05/0.01114, allocations: 51.56 kB / 333.6 MB, free: 14.81 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/0.01119, allocations: 49.67 kB / 333.6 MB, free: 14.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.01129, allocations: 350.7 kB / 334 MB, free: 14.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.472e-05/0.01137, allocations: 115.9 kB / 334.1 MB, free: 14.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.01147, allocations: 224.1 kB / 334.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001778/0.01165, allocations: 325.7 kB / 334.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.01165, allocations: 0 / 334.6 MB, free: 13.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002253/0.01188, allocations: 340.5 kB / 335 MB, free: 13.23 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.75e-05/0.01194, allocations: 93.09 kB / 335.1 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.01195, allocations: 4 kB / 335.1 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.01196, allocations: 4 kB / 335.1 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.892e-05/0.01203, allocations: 23.98 kB / 335.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.01204, allocations: 3.938 kB / 335.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.503e-05/0.01211, allocations: 31.81 kB / 335.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.413e-05/0.01213, allocations: 12 kB / 335.1 MB, free: 13.04 MB / 314.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.0001241/0.01225, allocations: 236.5 kB / 335.4 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/0.01229, allocations: 39.97 kB / 335.4 MB, free: 12.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.01245, allocations: 170.8 kB / 335.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.01245, allocations: 0 / 335.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01246, allocations: 0 / 335.6 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.01246, allocations: 7.938 kB / 335.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.0126, allocations: 133.7 kB / 335.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.0126, allocations: 0 / 335.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.27e-05/0.01262, allocations: 7.938 kB / 335.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.01262, allocations: 8 kB / 335.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.01264, allocations: 11.98 kB / 335.7 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.01264, allocations: 4 kB / 335.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01264, allocations: 0 / 335.7 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002595/0.0129, allocations: 422.5 kB / 336.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.339e-05/0.01294, allocations: 24 kB / 336.2 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.01297, allocations: 8 kB / 336.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.672e-05/0.01303, allocations: 23.97 kB / 336.2 MB, free: 11.84 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.252e-05/0.01308, allocations: 23.97 kB / 336.2 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.01309, allocations: 11.94 kB / 336.2 MB, free: 11.8 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.915e-05/0.01317, allocations: 101.6 kB / 336.3 MB, free: 11.7 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01317, allocations: 4 kB / 336.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002217/0.0134, allocations: 67.88 kB / 336.4 MB, free: 11.63 MB / 314.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.001244/0.01464, allocations: 0.5145 MB / 336.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003283/0.01497, allocations: 493.4 kB / 337.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.01497, allocations: 8.062 kB / 337.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001706/0.01514, allocations: 348.8 kB / 337.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.01536, allocations: 63.69 kB / 337.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005732/0.01593, allocations: 0.4943 MB / 338.3 MB, free: 9.812 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.796e-05/0.01598, allocations: 83.97 kB / 338.4 MB, free: 9.711 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.729e-05/0.01604, allocations: 26.09 kB / 338.4 MB, free: 9.684 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.01618, allocations: 123.3 kB / 338.5 MB, free: 9.562 MB / 314.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01618, allocations: 0 / 338.5 MB, free: 9.562 MB / 314.7 MB Notification: Performance of Templates: time 0.006138/0.02231, allocations: 3.866 MB / 342.4 MB, free: 5.754 MB / 314.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 240] 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","",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.342778315767646]