Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.002295/0.002295, allocations: 109.2 kB / 20.43 MB, free: 1.309 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.00229/0.00229, allocations: 220.1 kB / 23.75 MB, free: 4.531 MB / 14.72 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.569/1.569, allocations: 230.6 MB / 257.5 MB, free: 7.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2433/0.2433, allocations: 44.92 MB / 358.8 MB, free: 6.27 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.0.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.0.0_ModelicaTest.Blocks.OnDelay") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00237/0.00237, allocations: 63.89 kB / 0.4935 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3868, allocations: 65.47 MB / 0.5575 GB, free: 7.703 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003792/0.3906, allocations: 1.938 MB / 0.5594 GB, free: 5.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002243/0.3928, allocations: 1.208 MB / 0.5606 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.3929, allocations: 0 / 0.5606 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007913/0.3937, allocations: 191.4 kB / 0.5607 GB, free: 4.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004618/0.3942, allocations: 175.4 kB / 0.5609 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004291/0.3946, allocations: 163.5 kB / 0.5611 GB, free: 4.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003645/0.395, allocations: 279.3 kB / 0.5613 GB, free: 3.785 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.3951, allocations: 21.81 kB / 0.5613 GB, free: 3.762 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.3953, allocations: 119.6 kB / 0.5615 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.3955, allocations: 123.6 kB / 0.5616 GB, free: 3.523 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.444e-05/0.3955, allocations: 20 kB / 0.5616 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001648/0.3957, allocations: 67.89 kB / 0.5617 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.3958, allocations: 67.81 kB / 0.5617 GB, free: 3.371 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.3959, allocations: 111.4 kB / 0.5618 GB, free: 3.262 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004207/0.3963, allocations: 289.2 kB / 0.5621 GB, free: 2.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3963, allocations: 4 kB / 0.5621 GB, free: 2.98 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3963, allocations: 0 / 0.5621 GB, free: 2.98 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.3963, allocations: 0 / 0.5621 GB, free: 2.98 MB / 398.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.001173/0.3975, allocations: 0.605 MB / 0.5627 GB, free: 2.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.3976, allocations: 15.92 kB / 0.5627 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.3977, allocations: 28.8 kB / 0.5627 GB, free: 2.277 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004376/0.3981, allocations: 221.5 kB / 0.563 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.3983, allocations: 166.8 kB / 0.5631 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.3983, allocations: 19.94 kB / 0.5631 GB, free: 1.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.3987, allocations: 158.7 kB / 0.5633 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.3987, allocations: 0 / 0.5633 GB, free: 1.641 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.3987, allocations: 4 kB / 0.5633 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.884e-06/0.3987, allocations: 4 kB / 0.5633 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.399, allocations: 95.86 kB / 0.5634 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009645/0.3999, allocations: 0.582 MB / 0.564 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.4003, allocations: 151.9 kB / 0.5641 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.4005, allocations: 74.55 kB / 0.5642 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.594e-05/0.4005, allocations: 4 kB / 0.5642 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005336/0.401, allocations: 437.1 kB / 0.5646 GB, free: 144 kB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.342e-06/0.401, allocations: 0 / 0.5646 GB, free: 144 kB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009861/0.402, allocations: 450.8 kB / 0.565 GB, free: 15.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001749/0.4022, allocations: 221.5 kB / 0.5652 GB, free: 15.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004317/0.4026, allocations: 325.8 kB / 0.5655 GB, free: 15.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.599e-05/0.4027, allocations: 37.64 kB / 0.5656 GB, free: 15.04 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.4028, allocations: 136.6 kB / 0.5657 GB, free: 14.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.82e-05/0.4029, allocations: 59.58 kB / 0.5658 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.329e-05/0.403, allocations: 49.7 kB / 0.5658 GB, free: 14.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.4031, allocations: 338.8 kB / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.4033, allocations: 59.95 kB / 0.5662 GB, free: 14.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.4035, allocations: 142.8 kB / 0.5663 GB, free: 14.22 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004676/0.404, allocations: 358.6 kB / 0.5667 GB, free: 13.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.404, allocations: 0 / 0.5667 GB, free: 13.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005827/0.4046, allocations: 350.5 kB / 0.567 GB, free: 13.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.123e-05/0.4047, allocations: 101.1 kB / 0.5671 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.4047, allocations: 3.984 kB / 0.5671 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.097e-05/0.4047, allocations: 4 kB / 0.5671 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.4048, allocations: 19.94 kB / 0.5671 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.4048, allocations: 4 kB / 0.5671 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001413/0.405, allocations: 27.88 kB / 0.5672 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.405, allocations: 12 kB / 0.5672 GB, free: 13.25 MB / 414.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.000297/0.4053, allocations: 273.7 kB / 0.5674 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.003e-05/0.4053, allocations: 31.8 kB / 0.5675 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004188/0.4058, allocations: 201 kB / 0.5677 GB, free: 12.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.4058, allocations: 4 kB / 0.5677 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.4058, allocations: 0 / 0.5677 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.4058, allocations: 7.984 kB / 0.5677 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003447/0.4061, allocations: 264.5 kB / 0.5679 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.4061, allocations: 4 kB / 0.5679 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.787e-05/0.4062, allocations: 15.86 kB / 0.5679 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.4062, allocations: 4 kB / 0.5679 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.4062, allocations: 12 kB / 0.568 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.4062, allocations: 0 / 0.568 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4062, allocations: 4 kB / 0.568 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007147/0.4069, allocations: 447.2 kB / 0.5684 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.026e-05/0.407, allocations: 35.73 kB / 0.5684 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.593e-05/0.407, allocations: 8 kB / 0.5684 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.4071, allocations: 23.92 kB / 0.5684 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.364e-05/0.4072, allocations: 15.97 kB / 0.5685 GB, free: 11.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.4073, allocations: 16 kB / 0.5685 GB, free: 11.78 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002846/0.4075, allocations: 237.2 kB / 0.5687 GB, free: 11.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4075, allocations: 0 / 0.5687 GB, free: 11.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003441/0.4079, allocations: 71.89 kB / 0.5688 GB, free: 11.48 MB / 414.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 (14): * Single equations (assignments): 9 * 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.001626/0.4095, allocations: 440.7 kB / 0.5692 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006515/0.4102, allocations: 358 kB / 0.5695 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.4102, allocations: 0 / 0.5695 GB, free: 10.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000367/0.4105, allocations: 274.3 kB / 0.5698 GB, free: 10.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.4109, allocations: 63.52 kB / 0.5699 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008598/0.4118, allocations: 453.1 kB / 0.5703 GB, free: 9.965 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004338/0.4122, allocations: 0.7556 MB / 0.571 GB, free: 9.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.774e-05/0.4123, allocations: 33.61 kB / 0.5711 GB, free: 9.148 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.643e-05/0.4124, allocations: 23.44 kB / 0.5711 GB, free: 9.129 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4124, allocations: 0 / 0.5711 GB, free: 9.129 MB / 414.1 MB Notification: Performance of Templates: time 0.008625/0.421, allocations: 3.605 MB / 0.5746 GB, free: 5.539 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 5.696265355916694]