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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1871/0.1871, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2715, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002603/0.2742, allocations: 1.884 MB / 0.5207 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.2755, allocations: 1.039 MB / 0.5217 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.214e-05/0.2756, allocations: 1.125 kB / 0.5217 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005591/0.2761, allocations: 183.6 kB / 0.5219 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.2764, allocations: 130.1 kB / 0.522 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003985/0.2768, allocations: 199.9 kB / 0.5222 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002746/0.2771, allocations: 272.1 kB / 0.5225 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.937e-05/0.2772, allocations: 35.44 kB / 0.5225 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001293/0.2773, allocations: 106.8 kB / 0.5226 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001385/0.2775, allocations: 111.6 kB / 0.5227 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.506e-05/0.2775, allocations: 17.44 kB / 0.5228 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.2777, allocations: 67.8 kB / 0.5228 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.241e-05/0.2778, allocations: 62.42 kB / 0.5229 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.2779, allocations: 111 kB / 0.523 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.2782, allocations: 274.6 kB / 0.5232 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.2782, allocations: 0 / 0.5232 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2783, allocations: 0 / 0.5232 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.249e-06/0.2783, allocations: 0 / 0.5232 GB, free: 0.9023 MB / 382.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.0007167/0.279, allocations: 0.6733 MB / 0.5239 GB, free: 284 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.866e-05/0.279, allocations: 9.469 kB / 0.5239 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.439e-05/0.2791, allocations: 29.08 kB / 0.5239 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.2794, allocations: 283.3 kB / 0.5242 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.2795, allocations: 96.05 kB / 0.5243 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.949e-05/0.2795, allocations: 17.16 kB / 0.5243 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003082/0.2798, allocations: 161.4 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2799, allocations: 0.6094 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.2799, allocations: 7.844 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.2799, allocations: 3.156 kB / 0.5245 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002244/0.2801, allocations: 90.25 kB / 0.5246 GB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007561/0.2809, allocations: 0.6045 MB / 0.5252 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003384/0.2812, allocations: 186 kB / 0.5253 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.2814, allocations: 88.3 kB / 0.5254 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.2814, allocations: 7.234 kB / 0.5254 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004473/0.2819, allocations: 430.4 kB / 0.5258 GB, free: 14.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.493e-06/0.2819, allocations: 0 / 0.5258 GB, free: 14.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008156/0.2827, allocations: 447.2 kB / 0.5263 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.2829, allocations: 219.1 kB / 0.5265 GB, free: 14.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003247/0.2832, allocations: 312.2 kB / 0.5268 GB, free: 14.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.2832, allocations: 34.83 kB / 0.5268 GB, free: 14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.185e-05/0.2833, allocations: 138 kB / 0.5269 GB, free: 13.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.99e-05/0.2834, allocations: 52.53 kB / 0.527 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.497e-05/0.2835, allocations: 56.94 kB / 0.527 GB, free: 13.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.2836, allocations: 337.8 kB / 0.5274 GB, free: 13.47 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.2837, allocations: 56.59 kB / 0.5274 GB, free: 13.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001922/0.2839, allocations: 143.2 kB / 0.5276 GB, free: 13.33 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.2843, allocations: 352.8 kB / 0.5279 GB, free: 13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2844, allocations: 1.375 kB / 0.5279 GB, free: 13 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005241/0.2849, allocations: 356.9 kB / 0.5282 GB, free: 12.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.383e-05/0.285, allocations: 96.09 kB / 0.5283 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.285, allocations: 2.75 kB / 0.5283 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.285, allocations: 2.75 kB / 0.5283 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001012/0.2851, allocations: 19.11 kB / 0.5284 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.2851, allocations: 8.062 kB / 0.5284 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.2852, allocations: 28.62 kB / 0.5284 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.2853, allocations: 9.594 kB / 0.5284 GB, free: 12.65 MB / 398.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.0002097/0.2855, allocations: 270.3 kB / 0.5287 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.387e-05/0.2856, allocations: 37.81 kB / 0.5287 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.004e-05/0.2856, allocations: 26.34 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2856, allocations: 1.312 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.2856, allocations: 5.594 kB / 0.5287 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2857, allocations: 5.484 kB / 0.5287 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.2859, allocations: 286.7 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.2859, allocations: 1.344 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.12e-05/0.286, allocations: 20.05 kB / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.286, allocations: 1.406 kB / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.263e-05/0.286, allocations: 7 kB / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.286, allocations: 2.688 kB / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.286, allocations: 160 / 0.529 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006294/0.2867, allocations: 451.4 kB / 0.5295 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.978e-05/0.2867, allocations: 100.3 kB / 0.5296 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.196e-05/0.2868, allocations: 12.78 kB / 0.5296 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.2869, allocations: 15.77 kB / 0.5296 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.224e-05/0.287, allocations: 15.48 kB / 0.5296 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.153e-05/0.287, allocations: 18.45 kB / 0.5296 GB, free: 11.61 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.2873, allocations: 229.5 kB / 0.5298 GB, free: 11.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2873, allocations: 0 / 0.5298 GB, free: 11.47 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.2876, allocations: 76.09 kB / 0.5299 GB, free: 11.45 MB / 398.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,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * 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.0009465/0.2885, allocations: 446 kB / 0.5303 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005457/0.2891, allocations: 395.7 kB / 0.5307 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2891, allocations: 0.75 kB / 0.5307 GB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003432/0.2894, allocations: 342.2 kB / 0.531 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003411/0.2898, allocations: 53.88 kB / 0.5311 GB, free: 10.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007304/0.2905, allocations: 452.4 kB / 0.5315 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.2909, allocations: 0.752 MB / 0.5323 GB, free: 9.586 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.401e-05/0.291, allocations: 24.66 kB / 0.5323 GB, free: 9.578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.114e-05/0.291, allocations: 20.28 kB / 0.5323 GB, free: 9.57 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.291, allocations: 0 / 0.5323 GB, free: 9.57 MB / 398.1 MB Notification: Performance of Templates: time 0.006476/0.2975, allocations: 3.483 MB / 0.5357 GB, free: 7.805 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.makefile (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) 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) Reference file matches