Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator") translateModel(Buildings.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.00117/0.00117, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.571/2.571, allocations: 390.3 MB / 0.6653 GB, free: 2.953 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003664, allocations: 8 kB / 0.8145 GB, free: 14.31 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9022/0.9026, allocations: 142.3 MB / 0.9535 GB, free: 8.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002109/0.9048, allocations: 1.462 MB / 0.9549 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001476/0.9063, allocations: 0.9254 MB / 0.9558 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.422e-05/0.9064, allocations: 1.406 kB / 0.9558 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0005824/0.907, allocations: 145.6 kB / 0.956 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002288/0.9072, allocations: 86.94 kB / 0.9561 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/0.9077, allocations: 140.8 kB / 0.9562 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001844/0.9078, allocations: 102.2 kB / 0.9563 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.908, allocations: 27.33 kB / 0.9563 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.9081, allocations: 54.95 kB / 0.9564 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.9082, allocations: 64.06 kB / 0.9564 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.9082, allocations: 2.969 kB / 0.9564 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001215/0.9084, allocations: 35.41 kB / 0.9565 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.94e-05/0.9084, allocations: 38.58 kB / 0.9565 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.061e-05/0.9085, allocations: 49.3 kB / 0.9565 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002124/0.9087, allocations: 150.3 kB / 0.9567 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.9087, allocations: 3.938 kB / 0.9567 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.344e-06/0.9087, allocations: 3.938 kB / 0.9567 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.9087, allocations: 4 kB / 0.9567 GB, free: 5.707 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006974/0.9094, allocations: 475.7 kB / 0.9572 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.9095, allocations: 9.844 kB / 0.9572 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.243e-05/0.9096, allocations: 18.92 kB / 0.9572 GB, free: 5.219 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.9098, allocations: 230.8 kB / 0.9574 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.9099, allocations: 6.125 kB / 0.9574 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.9099, allocations: 7.609 kB / 0.9574 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001923/0.9101, allocations: 91.05 kB / 0.9575 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.9101, allocations: 0 / 0.9575 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.9101, allocations: 2.688 kB / 0.9575 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.976e-05/0.9102, allocations: 6.422 kB / 0.9575 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001046/0.9103, allocations: 33.97 kB / 0.9575 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005439/0.9108, allocations: 352.2 kB / 0.9579 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/0.911, allocations: 74.83 kB / 0.958 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.853e-05/0.9111, allocations: 1.312 kB / 0.958 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.9113, allocations: 92.92 kB / 0.958 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.923e-06/0.9113, allocations: 0 / 0.958 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004038/0.9117, allocations: 234 kB / 0.9583 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.9118, allocations: 77.11 kB / 0.9583 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.912, allocations: 267.7 kB / 0.9586 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.385e-05/0.9121, allocations: 26.89 kB / 0.9586 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.9121, allocations: 116.2 kB / 0.9587 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.9122, allocations: 20.17 kB / 0.9587 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.9122, allocations: 4 kB / 0.9588 GB, free: 3.766 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.9123, allocations: 328 kB / 0.9591 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.624e-05/0.9123, allocations: 31.02 kB / 0.9591 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.67e-05/0.9124, allocations: 53.55 kB / 0.9591 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.208e-05/0.9125, allocations: 40.08 kB / 0.9592 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.9125, allocations: 1.781 kB / 0.9592 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001976/0.9127, allocations: 113.2 kB / 0.9593 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.9127, allocations: 5.5 kB / 0.9593 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.9128, allocations: 4.062 kB / 0.9593 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.716e-05/0.9128, allocations: 5.328 kB / 0.9593 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.427e-05/0.9129, allocations: 13.61 kB / 0.9593 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.9129, allocations: 1.484 kB / 0.9593 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.069e-05/0.9129, allocations: 15.98 kB / 0.9593 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.913, allocations: 2.75 kB / 0.9593 GB, free: 3.266 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.y,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.9131, allocations: 143.7 kB / 0.9595 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.509e-05/0.9131, allocations: 14.69 kB / 0.9595 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.896e-05/0.9132, allocations: 24.27 kB / 0.9595 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/0.9132, allocations: 6.703 kB / 0.9595 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.9132, allocations: 3.938 kB / 0.9595 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.9132, allocations: 0 / 0.9595 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.9134, allocations: 223.8 kB / 0.9597 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.9134, allocations: 0 / 0.9597 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.157e-05/0.9134, allocations: 6.734 kB / 0.9597 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.9134, allocations: 1.375 kB / 0.9597 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.9134, allocations: 1.375 kB / 0.9597 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.9135, allocations: 0 / 0.9597 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.9135, allocations: 9.328 kB / 0.9598 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.9137, allocations: 141.1 kB / 0.9599 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.962e-05/0.9137, allocations: 98.34 kB / 0.96 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.9138, allocations: 9.312 kB / 0.96 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.299e-05/0.9138, allocations: 8.109 kB / 0.96 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.641e-05/0.9139, allocations: 2.75 kB / 0.96 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.9139, allocations: 10.69 kB / 0.96 GB, free: 2.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001752/0.9141, allocations: 199.6 kB / 0.9602 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9141, allocations: 0 / 0.9602 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002633/0.9144, allocations: 27.38 kB / 0.9602 GB, free: 2.48 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001037/0.9154, allocations: 428.9 kB / 0.9606 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002377/0.9156, allocations: 69.69 kB / 0.9607 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9157, allocations: 5.312 kB / 0.9607 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.424e-05/0.9158, allocations: 44.91 kB / 0.9608 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.916, allocations: 28.02 kB / 0.9608 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005589/0.9166, allocations: 317.9 kB / 0.9611 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001957/0.9168, allocations: 0.7244 MB / 0.9618 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.497e-05/0.9169, allocations: 23.16 kB / 0.9618 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.701e-05/0.9169, allocations: 27.92 kB / 0.9618 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of SimCode: time 3.7e-07/0.9169, allocations: 0 / 0.9618 GB, free: 1.223 MB / 0.7169 GB Notification: Performance of Templates: time 0.005566/0.9225, allocations: 2.109 MB / 0.9639 GB, free: 164 kB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches