Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001315/0.001315, allocations: 108.9 kB / 16.41 MB, free: 6.465 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.001293/0.001293, allocations: 187 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.56/2.56, allocations: 461.9 MB / 0.7355 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 67.84 kB / 1.055 GB, free: 7.684 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.806/0.8075, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003606/0.8111, allocations: 1.778 MB / 1.21 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001894/0.8131, allocations: 1.091 MB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.8132, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0003584/0.8136, allocations: 55.69 kB / 1.211 GB, free: 10.65 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0003498/0.814, allocations: 91.59 kB / 1.211 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007395/0.8147, allocations: 223 kB / 1.212 GB, free: 10.34 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.000264/0.815, allocations: 147.6 kB / 1.212 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001208/0.8151, allocations: 21.11 kB / 1.212 GB, free: 10.18 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001468/0.8153, allocations: 63.77 kB / 1.212 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001233/0.8154, allocations: 63.75 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.483e-05/0.8155, allocations: 8 kB / 1.212 GB, free: 10.05 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001964/0.8157, allocations: 71.88 kB / 1.212 GB, free: 9.977 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.857e-05/0.8158, allocations: 39.84 kB / 1.212 GB, free: 9.938 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.409e-05/0.8159, allocations: 59.67 kB / 1.212 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.000447/0.8163, allocations: 199.2 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.8163, allocations: 0 / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.076e-06/0.8163, allocations: 3.984 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.372e-06/0.8164, allocations: 0 / 1.212 GB, free: 9.684 MB / 0.9356 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.0008102/0.8172, allocations: 494.1 kB / 1.213 GB, free: 9.148 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.8172, allocations: 15.97 kB / 1.213 GB, free: 9.133 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.747e-05/0.8173, allocations: 16.75 kB / 1.213 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004403/0.8177, allocations: 248.9 kB / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.8178, allocations: 384 / 1.213 GB, free: 8.832 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.8178, allocations: 8.125 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.818, allocations: 104.2 kB / 1.213 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.8181, allocations: 0 / 1.213 GB, free: 8.707 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.8181, allocations: 3.984 kB / 1.213 GB, free: 8.703 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.8181, allocations: 4 kB / 1.213 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000113/0.8182, allocations: 31.92 kB / 1.213 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.8188, allocations: 352.7 kB / 1.213 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000251/0.8191, allocations: 98.66 kB / 1.214 GB, free: 8.168 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.414e-05/0.8192, allocations: 32.88 kB / 1.214 GB, free: 8.133 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.8192, allocations: 4 kB / 1.214 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.8194, allocations: 79.38 kB / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.713e-06/0.8194, allocations: 0 / 1.214 GB, free: 8.039 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.0003736/0.8198, allocations: 137.5 kB / 1.214 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.8198, allocations: 114.8 kB / 1.214 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.8201, allocations: 262.9 kB / 1.214 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.8201, allocations: 25.7 kB / 1.214 GB, free: 7.461 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 8.23e-05/0.8202, allocations: 120.1 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 8.54e-05/0.8203, allocations: 23.64 kB / 1.214 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.8204, allocations: 29.72 kB / 1.214 GB, free: 7.281 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0002264/0.8206, allocations: 334.8 kB / 1.215 GB, free: 6.945 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.721e-05/0.8207, allocations: 31.92 kB / 1.215 GB, free: 6.914 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.8209, allocations: 64.28 kB / 1.215 GB, free: 6.836 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001375/0.821, allocations: 69.62 kB / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.821, allocations: 0 / 1.215 GB, free: 6.762 MB / 0.9356 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000231/0.8213, allocations: 113.5 kB / 1.215 GB, free: 6.645 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.8213, allocations: 12.22 kB / 1.215 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.8213, allocations: 0 / 1.215 GB, free: 6.633 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.8213, allocations: 3.938 kB / 1.215 GB, free: 6.629 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.8216, allocations: 15.94 kB / 1.215 GB, free: 6.613 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.8216, allocations: 3.984 kB / 1.215 GB, free: 6.609 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.194e-05/0.8217, allocations: 11.94 kB / 1.215 GB, free: 6.598 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.8217, allocations: 0 / 1.215 GB, free: 6.598 MB / 0.9356 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.0001374/0.8218, allocations: 145.9 kB / 1.215 GB, free: 6.445 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.114e-05/0.8218, allocations: 15.81 kB / 1.215 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/0.8219, allocations: 25.39 kB / 1.215 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.8219, allocations: 0 / 1.215 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.8219, allocations: 0 / 1.215 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.8219, allocations: 3.938 kB / 1.215 GB, free: 6.398 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.8222, allocations: 233.4 kB / 1.215 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.8222, allocations: 0 / 1.215 GB, free: 6.121 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.145e-05/0.8223, allocations: 7.984 kB / 1.215 GB, free: 6.113 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.8223, allocations: 0 / 1.215 GB, free: 6.113 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.8223, allocations: 0 / 1.215 GB, free: 6.113 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.8223, allocations: 4 kB / 1.215 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.8223, allocations: 0 / 1.215 GB, free: 6.109 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.8226, allocations: 149.2 kB / 1.216 GB, free: 5.945 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.064e-05/0.8226, allocations: 89.02 kB / 1.216 GB, free: 5.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.8227, allocations: 4 kB / 1.216 GB, free: 5.836 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.488e-05/0.8227, allocations: 7.984 kB / 1.216 GB, free: 5.828 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.791e-05/0.8228, allocations: 4 kB / 1.216 GB, free: 5.824 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.658e-05/0.8228, allocations: 11.92 kB / 1.216 GB, free: 5.812 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001818/0.823, allocations: 200.4 kB / 1.216 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.823, allocations: 0 / 1.216 GB, free: 5.617 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002613/0.8233, allocations: 35.91 kB / 1.216 GB, free: 5.582 MB / 0.9356 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.001079/0.8244, allocations: 429.2 kB / 1.216 GB, free: 5.316 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0002449/0.8246, allocations: 75.88 kB / 1.216 GB, free: 5.242 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8246, allocations: 0 / 1.216 GB, free: 5.242 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.8247, allocations: 31.98 kB / 1.216 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.8251, allocations: 51.81 kB / 1.216 GB, free: 5.16 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005759/0.8257, allocations: 320.5 kB / 1.217 GB, free: 4.816 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.8261, allocations: 0.724 MB / 1.217 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.87e-05/0.8261, allocations: 15.44 kB / 1.217 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of SimCode: time 6.31e-07/0.8261, allocations: 0 / 1.217 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of Templates: time 0.005426/0.8315, allocations: 2.609 MB / 1.22 GB, free: 1.457 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches