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.001396/0.001396, allocations: 113.8 kB / 18.45 MB, free: 4.617 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.001496/0.001496, allocations: 190 kB / 19.39 MB, free: 3.688 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.408/1.408, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.2102/0.2102, allocations: 44.19 MB / 337.4 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 60.09 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3741, allocations: 60.82 MB / 0.5196 GB, free: 3.609 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003969/0.3781, allocations: 1.891 MB / 0.5214 GB, free: 2.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002192/0.3803, allocations: 1.035 MB / 0.5224 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.3805, allocations: 1.375 kB / 0.5224 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008864/0.3813, allocations: 183.1 kB / 0.5226 GB, free: 1.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004566/0.3818, allocations: 133.2 kB / 0.5227 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007212/0.3826, allocations: 193.3 kB / 0.5229 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004704/0.383, allocations: 274.2 kB / 0.5232 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001496/0.3832, allocations: 32.77 kB / 0.5232 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002016/0.3834, allocations: 115.2 kB / 0.5233 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.3837, allocations: 112.5 kB / 0.5234 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.265e-05/0.3837, allocations: 16.72 kB / 0.5234 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002132/0.3839, allocations: 68.17 kB / 0.5235 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3841, allocations: 62.25 kB / 0.5236 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.3843, allocations: 106.9 kB / 0.5237 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005269/0.3848, allocations: 281.9 kB / 0.5239 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3848, allocations: 0 / 0.5239 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3848, allocations: 0 / 0.5239 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3848, allocations: 0 / 0.5239 GB, free: 0.9062 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.001116/0.386, allocations: 0.6704 MB / 0.5246 GB, free: 292 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.386, allocations: 8.531 kB / 0.5246 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.3861, allocations: 29.48 kB / 0.5246 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004382/0.3866, allocations: 278.1 kB / 0.5249 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001602/0.3868, allocations: 97.86 kB / 0.525 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.3868, allocations: 14.66 kB / 0.525 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004852/0.3873, allocations: 158.3 kB / 0.5251 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3873, allocations: 3.25 kB / 0.5251 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.3874, allocations: 6.781 kB / 0.5252 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.3874, allocations: 4.125 kB / 0.5252 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003662/0.3878, allocations: 90.95 kB / 0.5252 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.389, allocations: 0.605 MB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005293/0.3895, allocations: 182.5 kB / 0.526 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.3898, allocations: 88.55 kB / 0.5261 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.3899, allocations: 7.219 kB / 0.5261 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006322/0.3905, allocations: 430 kB / 0.5265 GB, free: 14.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.174e-06/0.3906, allocations: 0 / 0.5265 GB, free: 14.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.001154/0.3917, allocations: 444.6 kB / 0.5269 GB, free: 14.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.3919, allocations: 220.9 kB / 0.5271 GB, free: 14.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005069/0.3924, allocations: 313.7 kB / 0.5274 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.998e-05/0.3925, allocations: 33.83 kB / 0.5275 GB, free: 14.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3926, allocations: 133.7 kB / 0.5276 GB, free: 13.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.265e-05/0.3927, allocations: 53.2 kB / 0.5277 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.3928, allocations: 56.58 kB / 0.5277 GB, free: 13.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.393, allocations: 342.3 kB / 0.528 GB, free: 13.49 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002096/0.3932, allocations: 57.8 kB / 0.5281 GB, free: 13.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002346/0.3934, allocations: 141.4 kB / 0.5282 GB, free: 13.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004505/0.3939, allocations: 357.1 kB / 0.5286 GB, free: 13.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.3939, allocations: 5.375 kB / 0.5286 GB, free: 13 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006135/0.3945, allocations: 342.5 kB / 0.5289 GB, free: 12.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.332e-05/0.3946, allocations: 104 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3946, allocations: 2.75 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.3947, allocations: 2.75 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001101/0.3948, allocations: 20.25 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.3948, allocations: 6.547 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.395, allocations: 29.61 kB / 0.5291 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.395, allocations: 8.969 kB / 0.5291 GB, free: 12.66 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.0002515/0.3953, allocations: 273.8 kB / 0.5293 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.3953, allocations: 33.14 kB / 0.5294 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.3954, allocations: 27.27 kB / 0.5294 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3954, allocations: 5.531 kB / 0.5294 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3954, allocations: 4 kB / 0.5294 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.851e-05/0.3955, allocations: 104.2 kB / 0.5295 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.035e-05/0.3955, allocations: 11.97 kB / 0.5295 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.3957, allocations: 16.61 kB / 0.5295 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/0.3958, allocations: 23.95 kB / 0.5295 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008287/0.3966, allocations: 0.7927 MB / 0.5303 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007333/0.3973, allocations: 0.7126 MB / 0.531 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002664/0.3976, allocations: 172.2 kB / 0.5312 GB, free: 10.88 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002473/0.3979, allocations: 234.6 kB / 0.5314 GB, free: 10.73 MB / 398.1 MB Notification: Performance of Backend: time 5.91e-07/0.3979, allocations: 4 kB / 0.5314 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.3998, allocations: 0.6985 MB / 0.5321 GB, free: 10.29 MB / 398.1 MB Notification: Performance of SimCode: time 0.001115/0.4009, allocations: 1.025 MB / 0.5331 GB, free: 9.332 MB / 398.1 MB Notification: Performance of Templates: time 0.009068/0.41, allocations: 3.707 MB / 0.5367 GB, free: 7.465 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches