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.00121/0.00121, allocations: 113.9 kB / 18.46 MB, free: 4.598 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.001261/0.001261, allocations: 185.9 kB / 19.39 MB, free: 3.672 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.234/1.234, 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.1857/0.1857, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 63.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2706, allocations: 60.82 MB / 0.5196 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002861/0.2735, allocations: 1.894 MB / 0.5214 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.2749, allocations: 1.032 MB / 0.5224 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.2751, allocations: 1.125 kB / 0.5224 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005732/0.2756, allocations: 187.5 kB / 0.5226 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002815/0.2759, allocations: 124.5 kB / 0.5227 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004697/0.2764, allocations: 201.4 kB / 0.5229 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002637/0.2767, allocations: 275.7 kB / 0.5232 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.2768, allocations: 31.3 kB / 0.5232 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.2769, allocations: 112 kB / 0.5233 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001336/0.2771, allocations: 116.1 kB / 0.5234 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.766e-05/0.2771, allocations: 16.47 kB / 0.5234 GB, free: 1.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.2773, allocations: 64 kB / 0.5235 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.178e-05/0.2773, allocations: 62.8 kB / 0.5236 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.2775, allocations: 107.1 kB / 0.5237 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003172/0.2778, allocations: 284.1 kB / 0.5239 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2778, allocations: 1.906 kB / 0.5239 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2778, allocations: 0 / 0.5239 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.2778, allocations: 4 kB / 0.5239 GB, free: 0.8906 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.0006719/0.2785, allocations: 0.6619 MB / 0.5246 GB, free: 284 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.2785, allocations: 9.375 kB / 0.5246 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.645e-05/0.2786, allocations: 28.89 kB / 0.5246 GB, free: 272 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002593/0.2789, allocations: 281 kB / 0.5249 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.279, allocations: 94 kB / 0.525 GB, free: 15.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.279, allocations: 19.41 kB / 0.525 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002972/0.2793, allocations: 158.8 kB / 0.5251 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.2793, allocations: 0 / 0.5251 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.964e-05/0.2794, allocations: 5.219 kB / 0.5251 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2794, allocations: 2.188 kB / 0.5252 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.2796, allocations: 89.38 kB / 0.5252 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007516/0.2804, allocations: 0.6133 MB / 0.5258 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.2807, allocations: 178.8 kB / 0.526 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.2809, allocations: 91.92 kB / 0.5261 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.2809, allocations: 1.844 kB / 0.5261 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004343/0.2813, allocations: 439.3 kB / 0.5265 GB, free: 14.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.694e-06/0.2813, allocations: 3.938 kB / 0.5265 GB, free: 14.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0007736/0.2821, allocations: 444 kB / 0.5269 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.575e-05/0.2822, allocations: 213.5 kB / 0.5271 GB, free: 14.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.2825, allocations: 313.1 kB / 0.5274 GB, free: 14.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.619e-05/0.2826, allocations: 42.52 kB / 0.5275 GB, free: 14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.195e-05/0.2827, allocations: 137.7 kB / 0.5276 GB, free: 13.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.754e-05/0.2827, allocations: 52.5 kB / 0.5277 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.004e-05/0.2828, allocations: 47.64 kB / 0.5277 GB, free: 13.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.2829, allocations: 343.6 kB / 0.528 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.2831, allocations: 52.47 kB / 0.5281 GB, free: 13.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.2833, allocations: 141.7 kB / 0.5282 GB, free: 13.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003842/0.2836, allocations: 358.1 kB / 0.5286 GB, free: 13.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2837, allocations: 1.125 kB / 0.5286 GB, free: 13.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005015/0.2842, allocations: 351.3 kB / 0.5289 GB, free: 12.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.31e-05/0.2842, allocations: 103.1 kB / 0.529 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2842, allocations: 2.688 kB / 0.529 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.2843, allocations: 3.125 kB / 0.529 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.169e-05/0.2844, allocations: 15.12 kB / 0.529 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.2844, allocations: 12.52 kB / 0.529 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.2845, allocations: 23.27 kB / 0.5291 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.014e-05/0.2845, allocations: 10.53 kB / 0.5291 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.0002168/0.2848, allocations: 277.9 kB / 0.5293 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.202e-05/0.2848, allocations: 33.2 kB / 0.5294 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.32e-05/0.2849, allocations: 26.98 kB / 0.5294 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.2849, allocations: 3.938 kB / 0.5294 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2849, allocations: 1.344 kB / 0.5294 GB, free: 12.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.918e-05/0.285, allocations: 104.2 kB / 0.5295 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.463e-05/0.285, allocations: 13.47 kB / 0.5295 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.2852, allocations: 22.39 kB / 0.5295 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.758e-05/0.2852, allocations: 20.83 kB / 0.5295 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007995/0.286, allocations: 0.7849 MB / 0.5303 GB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007054/0.2867, allocations: 0.7222 MB / 0.531 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002412/0.287, allocations: 161.5 kB / 0.5312 GB, free: 10.87 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.2872, allocations: 233.1 kB / 0.5314 GB, free: 10.72 MB / 398.1 MB Notification: Performance of Backend: time 2.9e-07/0.2872, allocations: 0.9375 kB / 0.5314 GB, free: 10.72 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.2888, allocations: 0.7118 MB / 0.5321 GB, free: 10.28 MB / 398.1 MB Notification: Performance of SimCode: time 0.0008909/0.2898, allocations: 1.014 MB / 0.5331 GB, free: 9.328 MB / 398.1 MB Notification: Performance of Templates: time 0.007154/0.2969, allocations: 3.719 MB / 0.5367 GB, free: 7.453 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