Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.002019/0.002019, allocations: 74.27 kB / 19.93 MB, free: 1.766 MB / 14.72 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.002244/0.002244, allocations: 174.8 kB / 23.22 MB, free: 4.867 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 158.6 MB / 185 MB, free: 6.387 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2038/0.2038, allocations: 32.37 MB / 269.6 MB, free: 2.816 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.675e-06/2.675e-06, allocations: 0 / 407.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.326e-05/3.594e-05, allocations: 2.281 kB / 407.4 MB, free: 0.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004317/0.004353, allocations: 1.846 MB / 409.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.006741, allocations: 0.9281 MB / 410.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001222/0.006863, allocations: 0 / 410.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008298/0.007693, allocations: 195.3 kB / 410.3 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003906/0.008083, allocations: 131.4 kB / 410.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.008543, allocations: 171.6 kB / 410.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006049/0.009148, allocations: 279.2 kB / 410.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.009271, allocations: 21.75 kB / 410.9 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.009499, allocations: 147.7 kB / 411.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002748/0.009774, allocations: 103.7 kB / 411.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.51e-05/0.009819, allocations: 16 kB / 411.2 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.009997, allocations: 67.89 kB / 411.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.01011, allocations: 63.81 kB / 411.3 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001171/0.01023, allocations: 75.77 kB / 411.4 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004527/0.01068, allocations: 287.1 kB / 411.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.01069, allocations: 0 / 411.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01069, allocations: 0 / 411.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.794e-06/0.0107, allocations: 0 / 411.6 MB, free: 12.51 MB / 350.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.001191/0.01189, allocations: 0.601 MB / 412.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.01193, allocations: 8.031 kB / 412.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/0.01201, allocations: 28.8 kB / 412.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/0.01242, allocations: 216.8 kB / 412.5 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002337/0.01265, allocations: 166.8 kB / 412.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.01269, allocations: 16.38 kB / 412.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004574/0.01315, allocations: 249.5 kB / 412.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.01316, allocations: 0 / 412.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.01318, allocations: 4 kB / 412.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.191e-06/0.01319, allocations: 0 / 412.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003172/0.0135, allocations: 184.9 kB / 413.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008487/0.01435, allocations: 0.5163 MB / 413.6 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004509/0.0148, allocations: 256.9 kB / 413.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002578/0.01506, allocations: 159.6 kB / 414 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.01509, allocations: 4 kB / 414 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006176/0.0157, allocations: 0.5217 MB / 414.6 MB, free: 9.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.833e-06/0.01571, allocations: 3.938 kB / 414.6 MB, free: 9.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00109/0.0168, allocations: 0.6178 MB / 415.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001426/0.01694, allocations: 191.9 kB / 415.4 MB, free: 8.316 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004442/0.01738, allocations: 329.8 kB / 415.7 MB, free: 7.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.419e-05/0.01742, allocations: 29.7 kB / 415.7 MB, free: 7.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.01753, allocations: 128.6 kB / 415.8 MB, free: 7.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.533e-05/0.0176, allocations: 55.58 kB / 415.9 MB, free: 7.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/0.01768, allocations: 53.64 kB / 415.9 MB, free: 7.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002139/0.0179, allocations: 342.8 kB / 416.3 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.01819, allocations: 141.1 kB / 416.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000334/0.01853, allocations: 268.1 kB / 416.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006878/0.01921, allocations: 358.6 kB / 417 MB, free: 6.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.01922, allocations: 0 / 417 MB, free: 6.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007106/0.01993, allocations: 443.5 kB / 417.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.579e-05/0.02001, allocations: 93.09 kB / 417.6 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.02002, allocations: 4 kB / 417.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.02005, allocations: 7.984 kB / 417.6 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.02018, allocations: 23.88 kB / 417.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.02018, allocations: 0 / 417.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.02033, allocations: 35.81 kB / 417.6 MB, free: 5.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.02035, allocations: 12.59 kB / 417.6 MB, free: 5.793 MB / 350.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.0002736/0.02063, allocations: 273.7 kB / 417.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.697e-05/0.02069, allocations: 27.86 kB / 417.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004364/0.02112, allocations: 238.8 kB / 418.2 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.02113, allocations: 4 kB / 418.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.02114, allocations: 3.938 kB / 418.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.02114, allocations: 0 / 418.2 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002681/0.02141, allocations: 205.1 kB / 418.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.02141, allocations: 4 kB / 418.4 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.148e-05/0.02145, allocations: 11.98 kB / 418.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.02145, allocations: 0 / 418.4 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.02148, allocations: 12 kB / 418.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.02149, allocations: 0 / 418.4 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.02149, allocations: 4.156 kB / 418.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008214/0.02231, allocations: 0.5317 MB / 418.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.708e-05/0.02236, allocations: 31.88 kB / 419 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.123e-05/0.02242, allocations: 15.94 kB / 419 MB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.02255, allocations: 19.98 kB / 419 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.02265, allocations: 19.92 kB / 419 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.985e-05/0.02269, allocations: 19.98 kB / 419 MB, free: 4.254 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002654/0.02295, allocations: 229.2 kB / 419.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02295, allocations: 0 / 419.3 MB, free: 4.031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003575/0.02331, allocations: 63.98 kB / 419.3 MB, free: 3.969 MB / 350.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.001892/0.0252, allocations: 474.7 kB / 419.8 MB, free: 3.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007552/0.02596, allocations: 0.5314 MB / 420.3 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.02596, allocations: 4 kB / 420.3 MB, free: 2.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004429/0.02641, allocations: 371.1 kB / 420.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.02681, allocations: 54.59 kB / 420.7 MB, free: 2.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.02782, allocations: 0.5365 MB / 421.3 MB, free: 1.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.02797, allocations: 140.9 kB / 421.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.973e-05/0.02805, allocations: 21.64 kB / 421.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.02811, allocations: 28.48 kB / 421.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.02811, allocations: 0 / 421.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of Templates: time 0.008909/0.03702, allocations: 3.603 MB / 425.1 MB, free: 14.09 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 4.625097144395113]