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.00137/0.00137, allocations: 105.8 kB / 16.41 MB, free: 6.457 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.001484/0.001484, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.422/1.422, allocations: 222.9 MB / 241 MB, free: 15.14 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.254/2.254, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 75.88 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8022/0.8037, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003473/0.8072, allocations: 1.765 MB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001844/0.8091, allocations: 1.111 MB / 1.091 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.8092, allocations: 1.219 kB / 1.091 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003704/0.8096, allocations: 61.34 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.81, allocations: 71.05 kB / 1.092 GB, free: 3.477 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008064/0.8108, allocations: 231.3 kB / 1.092 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002873/0.8111, allocations: 145.7 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.8112, allocations: 17.7 kB / 1.092 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.8114, allocations: 68.14 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001636/0.8116, allocations: 62.48 kB / 1.092 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.8116, allocations: 7.469 kB / 1.092 GB, free: 3.234 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002422/0.8119, allocations: 83.52 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.118e-05/0.812, allocations: 34.38 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.779e-05/0.8121, allocations: 66.83 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004039/0.8125, allocations: 197.7 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.8125, allocations: 0.625 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8125, allocations: 0 / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.8125, allocations: 0.625 kB / 1.092 GB, free: 3.066 MB / 0.8575 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.0006202/0.8131, allocations: 489.3 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.8132, allocations: 9.625 kB / 1.093 GB, free: 2.602 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.362e-05/0.8132, allocations: 20.41 kB / 1.093 GB, free: 2.59 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.8136, allocations: 246.2 kB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.8136, allocations: 3.281 kB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.384e-05/0.8136, allocations: 15.69 kB / 1.093 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.8138, allocations: 104.5 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.8139, allocations: 1.062 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.8139, allocations: 1.25 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.8139, allocations: 5.734 kB / 1.093 GB, free: 2.258 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.814, allocations: 39.78 kB / 1.093 GB, free: 2.242 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005232/0.8146, allocations: 351.1 kB / 1.094 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.8148, allocations: 84 kB / 1.094 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.719e-05/0.8149, allocations: 35.67 kB / 1.094 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.8149, allocations: 4.875 kB / 1.094 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.8151, allocations: 83.38 kB / 1.094 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.8151, allocations: 1.094 kB / 1.094 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004016/0.8155, allocations: 137.2 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.8156, allocations: 108.9 kB / 1.094 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003278/0.8159, allocations: 261.3 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.816, allocations: 36.02 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.622e-05/0.8161, allocations: 112.8 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.8161, allocations: 24.77 kB / 1.095 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-05/0.8161, allocations: 25.53 kB / 1.095 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.855e-05/0.8162, allocations: 333 kB / 1.095 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.71e-05/0.8163, allocations: 25.61 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.8164, allocations: 71.91 kB / 1.095 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.8166, allocations: 74.45 kB / 1.095 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.8166, allocations: 0.75 kB / 1.095 GB, free: 0.8516 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002378/0.8168, allocations: 109.7 kB / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.8169, allocations: 5.469 kB / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.8169, allocations: 0 / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.8169, allocations: 2.266 kB / 1.095 GB, free: 0.793 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.921e-05/0.817, allocations: 16.47 kB / 1.095 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.817, allocations: 5.719 kB / 1.095 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.553e-05/0.8171, allocations: 7.094 kB / 1.095 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.8171, allocations: 3.625 kB / 1.095 GB, free: 0.7812 MB / 0.8575 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.0001309/0.8173, allocations: 149.2 kB / 1.095 GB, free: 0.6484 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.548e-05/0.8173, allocations: 23.44 kB / 1.095 GB, free: 0.6328 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.063e-05/0.8174, allocations: 19.88 kB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.8174, allocations: 1.094 kB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.8174, allocations: 1.469 kB / 1.095 GB, free: 0.625 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.8174, allocations: 7.938 kB / 1.095 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.8176, allocations: 231 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.8176, allocations: 0.7812 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.397e-05/0.8177, allocations: 7 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.8177, allocations: 0 / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.8177, allocations: 1.891 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.8177, allocations: 1.969 kB / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.8177, allocations: 0 / 1.096 GB, free: 404 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.818, allocations: 150.6 kB / 1.096 GB, free: 296 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.151e-05/0.818, allocations: 96 kB / 1.096 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.818, allocations: 2.5 kB / 1.096 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.533e-05/0.8181, allocations: 3.656 kB / 1.096 GB, free: 188 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.325e-05/0.8182, allocations: 11.3 kB / 1.096 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.8182, allocations: 7.688 kB / 1.096 GB, free: 180 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002023/0.8184, allocations: 193.5 kB / 1.096 GB, free: 72 kB / 0.8575 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8184, allocations: 0 / 1.096 GB, free: 72 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003108/0.8187, allocations: 35.97 kB / 1.096 GB, free: 64 kB / 0.8575 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.00113/0.8199, allocations: 433.4 kB / 1.096 GB, free: 15.86 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002668/0.8201, allocations: 72.77 kB / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.8202, allocations: 0 / 1.097 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.8203, allocations: 37.89 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.8206, allocations: 32.52 kB / 1.097 GB, free: 15.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006969/0.8213, allocations: 329.1 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.8217, allocations: 0.7198 MB / 1.098 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.024e-05/0.8217, allocations: 24.3 kB / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of SimCode: time 2.01e-07/0.8218, allocations: 0 / 1.098 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of Templates: time 0.007033/0.8288, allocations: 2.608 MB / 1.1 GB, free: 14.57 MB / 0.8731 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