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.001002/0.001002, allocations: 77.88 kB / 21.42 MB, free: 3.074 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.001163/0.001163, allocations: 168.6 kB / 24.82 MB, free: 9.262 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.034/1.034, allocations: 177.1 MB / 205.3 MB, free: 5.5 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.3987/0.3987, allocations: 34.26 MB / 296.1 MB, free: 0.7109 MB / 266.7 MB " [Timeout remaining time 179] 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 2.354e-06/2.354e-06, allocations: 3.938 kB / 378.5 MB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.421e-05/3.657e-05, allocations: 2.312 kB / 378.5 MB, free: 2.41 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.004407/0.004443, allocations: 1.924 MB / 380.4 MB, free: 476 kB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.006511, allocations: 1.153 MB / 381.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.006725, allocations: 4 kB / 381.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008765/0.007601, allocations: 187.4 kB / 381.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004744/0.008076, allocations: 179.1 kB / 381.9 MB, free: 14.95 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004924/0.008568, allocations: 163.5 kB / 382.1 MB, free: 14.79 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003924/0.00896, allocations: 283.2 kB / 382.4 MB, free: 14.51 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.00909, allocations: 21.8 kB / 382.4 MB, free: 14.49 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002381/0.009328, allocations: 151.7 kB / 382.5 MB, free: 14.34 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.009519, allocations: 103.7 kB / 382.6 MB, free: 14.24 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 3.623e-05/0.009555, allocations: 16 kB / 382.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002652/0.00982, allocations: 75.83 kB / 382.7 MB, free: 14.15 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.009942, allocations: 63.77 kB / 382.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 9.705e-05/0.01004, allocations: 75.83 kB / 382.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004587/0.0105, allocations: 231.1 kB / 383.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.0105, allocations: 4 kB / 383.1 MB, free: 13.78 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.01051, allocations: 0 / 383.1 MB, free: 13.78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.01051, allocations: 0 / 383.1 MB, free: 13.78 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.0009416/0.01146, allocations: 0.6893 MB / 383.8 MB, free: 13.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.01151, allocations: 8.031 kB / 383.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.393e-05/0.01159, allocations: 48.75 kB / 383.8 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000295/0.01189, allocations: 232.2 kB / 384.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.012, allocations: 170.7 kB / 384.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.066e-05/0.01202, allocations: 16.36 kB / 384.2 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003055/0.01233, allocations: 235.3 kB / 384.5 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.01234, allocations: 3.984 kB / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.01236, allocations: 7.938 kB / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.01236, allocations: 0 / 384.5 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001127/0.01248, allocations: 133 kB / 384.6 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006988/0.01318, allocations: 0.6346 MB / 385.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002705/0.01345, allocations: 226.5 kB / 385.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.23e-05/0.01354, allocations: 144.1 kB / 385.6 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.01357, allocations: 8 kB / 385.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003592/0.01393, allocations: 0.4963 MB / 386.1 MB, free: 10.35 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.01393, allocations: 0 / 386.1 MB, free: 10.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006112/0.01454, allocations: 0.5518 MB / 386.7 MB, free: 9.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.561e-05/0.01462, allocations: 195.9 kB / 386.9 MB, free: 9.504 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002095/0.01483, allocations: 304.2 kB / 387.2 MB, free: 9.188 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.01486, allocations: 37.7 kB / 387.2 MB, free: 9.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.331e-05/0.01495, allocations: 187.3 kB / 387.4 MB, free: 8.957 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.287e-05/0.01501, allocations: 63.55 kB / 387.4 MB, free: 8.895 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.851e-05/0.01507, allocations: 51.34 kB / 387.5 MB, free: 8.836 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002792/0.01535, allocations: 0.5195 MB / 388 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.539e-05/0.01545, allocations: 109.1 kB / 388.1 MB, free: 8.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001355/0.01558, allocations: 243.3 kB / 388.3 MB, free: 7.871 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.01583, allocations: 355.1 kB / 388.7 MB, free: 7.445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.01584, allocations: 0 / 388.7 MB, free: 7.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003407/0.01618, allocations: 383.5 kB / 389.1 MB, free: 7.027 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/0.01624, allocations: 101.1 kB / 389.2 MB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.01625, allocations: 4.219 kB / 389.2 MB, free: 6.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.01627, allocations: 4 kB / 389.2 MB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.677e-05/0.01636, allocations: 23.92 kB / 389.2 MB, free: 6.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.01636, allocations: 7.938 kB / 389.2 MB, free: 6.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.633e-05/0.01645, allocations: 27.88 kB / 389.2 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.01646, allocations: 12 kB / 389.2 MB, free: 6.832 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.0001666/0.01663, allocations: 280.2 kB / 389.5 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.177e-05/0.01668, allocations: 47.81 kB / 389.6 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/0.01694, allocations: 214.9 kB / 389.8 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.01694, allocations: 4 kB / 389.8 MB, free: 6.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.01695, allocations: 4 kB / 389.8 MB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.01695, allocations: 3.938 kB / 389.8 MB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.01721, allocations: 181.1 kB / 390 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.01721, allocations: 0 / 390 MB, free: 6.039 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.551e-05/0.01725, allocations: 8 kB / 390 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.01725, allocations: 0 / 390 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.01727, allocations: 11.98 kB / 390 MB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.01728, allocations: 7.922 kB / 390 MB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.01728, allocations: 4 kB / 390 MB, free: 6.008 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003824/0.01766, allocations: 0.5118 MB / 390.5 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.137e-05/0.01769, allocations: 27.84 kB / 390.5 MB, free: 5.402 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.01773, allocations: 15.98 kB / 390.6 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.953e-05/0.0178, allocations: 15.98 kB / 390.6 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.43e-05/0.01786, allocations: 27.91 kB / 390.6 MB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.039e-05/0.01788, allocations: 8 kB / 390.6 MB, free: 5.336 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001245/0.01801, allocations: 213 kB / 390.8 MB, free: 5.129 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.01801, allocations: 3.938 kB / 390.8 MB, free: 5.125 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002586/0.01827, allocations: 71.88 kB / 390.9 MB, free: 5.055 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.000888/0.01915, allocations: 403.4 kB / 391.3 MB, free: 4.797 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005569/0.01971, allocations: 499.8 kB / 391.8 MB, free: 4.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.01971, allocations: 0 / 391.8 MB, free: 4.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.01989, allocations: 346.9 kB / 392.1 MB, free: 3.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.02017, allocations: 56.47 kB / 392.2 MB, free: 3.777 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006333/0.02081, allocations: 0.5107 MB / 392.7 MB, free: 3.215 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.549e-05/0.02086, allocations: 87.97 kB / 392.8 MB, free: 3.109 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 6.676e-05/0.02093, allocations: 22.48 kB / 392.8 MB, free: 3.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.02109, allocations: 146.2 kB / 392.9 MB, free: 2.941 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/0.0211, allocations: 0 / 392.9 MB, free: 2.941 MB / 362.7 MB Notification: Performance of Templates: time 0.007224/0.02832, allocations: 3.998 MB / 396.9 MB, free: 14.99 MB / 378.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.717533979099244]