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.001324/0.001323, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.00143/0.00143, allocations: 183.9 kB / 18.71 MB, free: 4.371 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2194/0.2194, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.417/0.4182, allocations: 60.83 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.00304/0.4213, allocations: 1.893 MB / 0.5207 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.4229, allocations: 1.026 MB / 0.5217 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.4231, allocations: 2.312 kB / 0.5217 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006977/0.4238, allocations: 187.7 kB / 0.5219 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003177/0.4241, allocations: 128.1 kB / 0.522 GB, free: 1.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000504/0.4246, allocations: 197.7 kB / 0.5222 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003396/0.425, allocations: 272 kB / 0.5225 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.4251, allocations: 35.42 kB / 0.5225 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001522/0.4252, allocations: 115.6 kB / 0.5226 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001691/0.4254, allocations: 112.8 kB / 0.5227 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.4255, allocations: 17.75 kB / 0.5228 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001494/0.4256, allocations: 59.94 kB / 0.5228 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.961e-05/0.4257, allocations: 65.47 kB / 0.5229 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.4258, allocations: 115.3 kB / 0.523 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003927/0.4262, allocations: 271.2 kB / 0.5232 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4263, allocations: 0 / 0.5232 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4263, allocations: 0 / 0.5232 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.132e-05/0.4263, allocations: 4 kB / 0.5233 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.0008394/0.4271, allocations: 0.6659 MB / 0.5239 GB, free: 296 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.4272, allocations: 11.66 kB / 0.5239 GB, free: 296 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.957e-05/0.4273, allocations: 28 kB / 0.5239 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002953/0.4276, allocations: 268.7 kB / 0.5242 GB, free: 32 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001103/0.4277, allocations: 93.89 kB / 0.5243 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.432e-05/0.4277, allocations: 23.23 kB / 0.5243 GB, free: 15.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003711/0.4281, allocations: 163.6 kB / 0.5245 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.4281, allocations: 0.6094 kB / 0.5245 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/0.4281, allocations: 3.562 kB / 0.5245 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.4282, allocations: 3.594 kB / 0.5245 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.4284, allocations: 94.84 kB / 0.5246 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008632/0.4293, allocations: 0.6107 MB / 0.5252 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.4296, allocations: 174.2 kB / 0.5253 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.4298, allocations: 92.73 kB / 0.5254 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.4299, allocations: 2.5 kB / 0.5254 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004691/0.4303, allocations: 434.8 kB / 0.5258 GB, free: 14.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.803e-06/0.4303, allocations: 0 / 0.5258 GB, free: 14.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008611/0.4312, allocations: 445.2 kB / 0.5263 GB, free: 14.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.4313, allocations: 217.3 kB / 0.5265 GB, free: 14.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000366/0.4317, allocations: 316.2 kB / 0.5268 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.4318, allocations: 39.02 kB / 0.5268 GB, free: 14.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.4319, allocations: 128.6 kB / 0.5269 GB, free: 13.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/0.4319, allocations: 53.34 kB / 0.527 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.136e-05/0.432, allocations: 48.62 kB / 0.527 GB, free: 13.83 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.4322, allocations: 343.2 kB / 0.5273 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.4323, allocations: 60.27 kB / 0.5274 GB, free: 13.48 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.4326, allocations: 150.2 kB / 0.5275 GB, free: 13.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003865/0.433, allocations: 354.4 kB / 0.5279 GB, free: 13.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.433, allocations: 0 / 0.5279 GB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005255/0.4335, allocations: 358.5 kB / 0.5282 GB, free: 12.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.568e-05/0.4336, allocations: 90.72 kB / 0.5283 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.4336, allocations: 2.75 kB / 0.5283 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.4336, allocations: 4.125 kB / 0.5283 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.716e-05/0.4337, allocations: 23.11 kB / 0.5283 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/0.4337, allocations: 6.688 kB / 0.5284 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.4339, allocations: 25.58 kB / 0.5284 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.4339, allocations: 18 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.0002242/0.4341, allocations: 253.1 kB / 0.5286 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.97e-05/0.4342, allocations: 33.44 kB / 0.5287 GB, free: 12.4 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.096e-05/0.4343, allocations: 30.53 kB / 0.5287 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.4343, allocations: 6.719 kB / 0.5287 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4343, allocations: 3.938 kB / 0.5287 GB, free: 12.37 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.291e-06/0.4343, allocations: 5.391 kB / 0.5287 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.4346, allocations: 288 kB / 0.529 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.4346, allocations: 4 kB / 0.529 GB, free: 12.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.266e-05/0.4346, allocations: 13.16 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.4347, allocations: 5.203 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.4347, allocations: 7.156 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.4347, allocations: 1.406 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4347, allocations: 1.781 kB / 0.529 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006595/0.4354, allocations: 444.2 kB / 0.5294 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.846e-05/0.4354, allocations: 112.8 kB / 0.5295 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/0.4355, allocations: 9.281 kB / 0.5296 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001132/0.4356, allocations: 22.42 kB / 0.5296 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/0.4357, allocations: 16.48 kB / 0.5296 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/0.4357, allocations: 18.36 kB / 0.5296 GB, free: 11.62 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002503/0.436, allocations: 228.7 kB / 0.5298 GB, free: 11.47 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.436, allocations: 5.219 kB / 0.5298 GB, free: 11.47 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.4363, allocations: 67.2 kB / 0.5299 GB, free: 11.46 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.0009964/0.4373, allocations: 431.6 kB / 0.5303 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006265/0.438, allocations: 393.1 kB / 0.5307 GB, free: 10.96 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.728e-06/0.438, allocations: 4.438 kB / 0.5307 GB, free: 10.95 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000388/0.4384, allocations: 337.4 kB / 0.531 GB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.4388, allocations: 62.34 kB / 0.5311 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000829/0.4396, allocations: 446.7 kB / 0.5315 GB, free: 10.35 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.44, allocations: 0.755 MB / 0.5322 GB, free: 9.609 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.25e-05/0.4401, allocations: 25.03 kB / 0.5323 GB, free: 9.602 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.827e-05/0.4401, allocations: 19.88 kB / 0.5323 GB, free: 9.594 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4401, allocations: 0 / 0.5323 GB, free: 9.594 MB / 398.1 MB Notification: Performance of Templates: time 0.007409/0.4476, allocations: 3.487 MB / 0.5357 GB, free: 7.824 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