Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 108.4 kB / 15.99 MB, free: 6.371 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.001572/0.001573, allocations: 194.9 kB / 16.91 MB, free: 6.199 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.524/1.524, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.258/2.258, allocations: 390.2 MB / 0.665 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001653/0.001653, allocations: 68.08 kB / 0.8127 GB, free: 33.29 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4063, allocations: 140.4 MB / 0.9498 GB, free: 9.223 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.005281/0.4117, allocations: 1.836 MB / 0.9516 GB, free: 7.371 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003216/0.4149, allocations: 1.096 MB / 0.9526 GB, free: 6.266 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.4151, allocations: 4 kB / 0.9526 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0004497/0.4155, allocations: 51.81 kB / 0.9527 GB, free: 6.211 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003905/0.416, allocations: 63.8 kB / 0.9527 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.4172, allocations: 207.5 kB / 0.9529 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0003265/0.4175, allocations: 143.6 kB / 0.9531 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.4177, allocations: 25.09 kB / 0.9531 GB, free: 5.785 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.4179, allocations: 67.7 kB / 0.9532 GB, free: 5.719 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.4181, allocations: 63.75 kB / 0.9532 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.4181, allocations: 4 kB / 0.9532 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.4183, allocations: 67.97 kB / 0.9533 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.4185, allocations: 47.77 kB / 0.9533 GB, free: 5.539 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001148/0.4186, allocations: 55.67 kB / 0.9534 GB, free: 5.484 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.419, allocations: 152 kB / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.419, allocations: 0 / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.054e-06/0.419, allocations: 0 / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.817e-06/0.419, allocations: 0 / 0.9535 GB, free: 5.336 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009839/0.42, allocations: 496.3 kB / 0.954 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.4201, allocations: 12.03 kB / 0.954 GB, free: 4.785 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.89e-05/0.4202, allocations: 16.75 kB / 0.954 GB, free: 4.77 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.4207, allocations: 248.8 kB / 0.9543 GB, free: 4.488 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.4207, allocations: 12.31 kB / 0.9543 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.4208, allocations: 12.12 kB / 0.9543 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.4211, allocations: 92.22 kB / 0.9544 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4212, allocations: 0 / 0.9544 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.4212, allocations: 0 / 0.9544 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.4212, allocations: 4 kB / 0.9544 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002004/0.4214, allocations: 39.92 kB / 0.9544 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007989/0.4223, allocations: 352.7 kB / 0.9548 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004217/0.4227, allocations: 98.62 kB / 0.9549 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001458/0.4229, allocations: 28.84 kB / 0.9549 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.4229, allocations: 4 kB / 0.9549 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003764/0.4233, allocations: 91.34 kB / 0.955 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 2.785e-06/0.4233, allocations: 0 / 0.955 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0006384/0.424, allocations: 133.4 kB / 0.9551 GB, free: 3.543 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.815e-05/0.4241, allocations: 106.8 kB / 0.9552 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004453/0.4245, allocations: 270.7 kB / 0.9555 GB, free: 3.141 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.4246, allocations: 25.7 kB / 0.9555 GB, free: 3.109 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.4247, allocations: 116.1 kB / 0.9556 GB, free: 2.992 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.388e-05/0.4248, allocations: 19.81 kB / 0.9556 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9e-05/0.4249, allocations: 33.69 kB / 0.9556 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4251, allocations: 330.8 kB / 0.956 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.4252, allocations: 23.98 kB / 0.956 GB, free: 2.578 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/0.4254, allocations: 72.27 kB / 0.9561 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002829/0.4257, allocations: 69.64 kB / 0.9561 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4258, allocations: 0 / 0.9561 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004247/0.4262, allocations: 117.7 kB / 0.9562 GB, free: 2.297 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.4262, allocations: 8 kB / 0.9562 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.4263, allocations: 0 / 0.9562 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4263, allocations: 0 / 0.9562 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.4265, allocations: 12 kB / 0.9562 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.4265, allocations: 4.062 kB / 0.9563 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.4266, allocations: 23.8 kB / 0.9563 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.4267, allocations: 3.938 kB / 0.9563 GB, free: 2.246 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * 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.0002061/0.4269, allocations: 143.4 kB / 0.9564 GB, free: 2.098 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.014e-05/0.4269, allocations: 15.81 kB / 0.9564 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.072e-05/0.427, allocations: 21.39 kB / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.4271, allocations: 0 / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4271, allocations: 0 / 0.9565 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.4271, allocations: 3.938 kB / 0.9565 GB, free: 2.059 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003161/0.4274, allocations: 225.6 kB / 0.9567 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4274, allocations: 4 kB / 0.9567 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.233e-05/0.4275, allocations: 7.938 kB / 0.9567 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.4275, allocations: 0 / 0.9567 GB, free: 1.777 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.4276, allocations: 3.984 kB / 0.9567 GB, free: 1.773 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.498e-06/0.4276, allocations: 8.188 kB / 0.9567 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4276, allocations: 0 / 0.9567 GB, free: 1.766 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004601/0.4281, allocations: 140.8 kB / 0.9568 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.849e-05/0.4282, allocations: 96.92 kB / 0.9569 GB, free: 1.496 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.449e-05/0.4282, allocations: 4 kB / 0.9569 GB, free: 1.492 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.4284, allocations: 4 kB / 0.9569 GB, free: 1.488 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.646e-05/0.4285, allocations: 11.98 kB / 0.9569 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/0.4285, allocations: 3.938 kB / 0.9569 GB, free: 1.473 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003249/0.4288, allocations: 200.4 kB / 0.9571 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of sort global known variables: time 5.11e-07/0.4289, allocations: 0 / 0.9571 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004666/0.4293, allocations: 39.98 kB / 0.9572 GB, free: 1.238 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * 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.001732/0.4311, allocations: 428.7 kB / 0.9576 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004045/0.4315, allocations: 83.88 kB / 0.9577 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4315, allocations: 0 / 0.9577 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.4317, allocations: 35.92 kB / 0.9577 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004869/0.4322, allocations: 31.62 kB / 0.9577 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009118/0.4331, allocations: 356.5 kB / 0.9581 GB, free: 452 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.4336, allocations: 0.724 MB / 0.9588 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.309e-05/0.4337, allocations: 27.44 kB / 0.9588 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of SimCode: time 7.71e-07/0.4337, allocations: 0 / 0.9588 GB, free: 15.67 MB / 0.7481 GB Notification: Performance of Templates: time 0.008317/0.442, allocations: 2.592 MB / 0.9613 GB, free: 13.09 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches