Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.483/1.483, allocations: 249.5 MB / 257 MB, free: 6.844 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001202/0.001203, allocations: 184.6 kB / 316.3 MB, free: 3.27 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.745/1.745, allocations: 205.3 MB / 0.5672 GB, free: 15.83 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007651/0.0007651, allocations: 76.7 kB / 0.6714 GB, free: 4.961 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.965e-05/1.974e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1977, allocations: 106.3 MB / 0.8852 GB, free: 12.26 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7219/0.9197, allocations: 135.9 MB / 1.018 GB, free: 1.871 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002942/0.9201, allocations: 78.02 kB / 1.018 GB, free: 1.832 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01505/0.9351, allocations: 5.375 MB / 1.023 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.372e-06/0.9352, allocations: 0 / 1.023 GB, free: 13.4 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 1.948e-05/0.9352, allocations: 7.984 kB / 1.023 GB, free: 13.39 MB / 0.6511 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.0005744/0.9358, allocations: 451.1 kB / 1.024 GB, free: 12.91 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.9358, allocations: 12.03 kB / 1.024 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.187e-05/0.9359, allocations: 15.81 kB / 1.024 GB, free: 12.88 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003824/0.9363, allocations: 259.1 kB / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.9363, allocations: 0 / 1.024 GB, free: 12.61 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.9363, allocations: 7.938 kB / 1.024 GB, free: 12.6 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001044/0.9365, allocations: 41.61 kB / 1.024 GB, free: 12.57 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001364/0.9366, allocations: 78.05 kB / 1.024 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.9366, allocations: 0 / 1.024 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.9366, allocations: 0 / 1.024 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/0.9367, allocations: 8 kB / 1.024 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004839/0.9371, allocations: 333.5 kB / 1.024 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.9373, allocations: 64.75 kB / 1.024 GB, free: 12.11 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.602e-05/0.9374, allocations: 35.53 kB / 1.024 GB, free: 12.08 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.9374, allocations: 4 kB / 1.024 GB, free: 12.07 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001313/0.9375, allocations: 90.12 kB / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=10): time 3.306e-06/0.9375, allocations: 112 / 1.025 GB, free: 11.98 MB / 0.6511 GB Notification: Performance of matching and sorting (n=10): time 0.0002981/0.9378, allocations: 111.5 kB / 1.025 GB, free: 11.89 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.9379, allocations: 77.11 kB / 1.025 GB, free: 11.79 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002683/0.9382, allocations: 230.2 kB / 1.025 GB, free: 11.6 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 1.99e-05/0.9382, allocations: 25.7 kB / 1.025 GB, free: 11.57 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.046e-05/0.9383, allocations: 117.1 kB / 1.025 GB, free: 11.47 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.349e-05/0.9383, allocations: 23.27 kB / 1.025 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.9383, allocations: 3.938 kB / 1.025 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.9385, allocations: 334 kB / 1.025 GB, free: 11.12 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.739e-05/0.9386, allocations: 30.98 kB / 1.025 GB, free: 11.1 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.611e-05/0.9386, allocations: 53.48 kB / 1.026 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.723e-05/0.9387, allocations: 34.64 kB / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.9387, allocations: 0 / 1.026 GB, free: 11.02 MB / 0.6511 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001938/0.9389, allocations: 114 kB / 1.026 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.939, allocations: 4 kB / 1.026 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.939, allocations: 4 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.939, allocations: 0 / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.558e-05/0.9391, allocations: 8 kB / 1.026 GB, free: 10.91 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.9391, allocations: 3.984 kB / 1.026 GB, free: 10.9 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.611e-05/0.9392, allocations: 11.84 kB / 1.026 GB, free: 10.89 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.948e-06/0.9392, allocations: 8.031 kB / 1.026 GB, free: 10.88 MB / 0.6511 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.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete 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.0001095/0.9393, allocations: 116 kB / 1.026 GB, free: 10.77 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.9393, allocations: 15.81 kB / 1.026 GB, free: 10.75 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002492/0.9396, allocations: 125.7 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.9396, allocations: 7.75 kB / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.9396, allocations: 0 / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.9397, allocations: 0 / 1.026 GB, free: 10.64 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002045/0.9399, allocations: 205.8 kB / 1.026 GB, free: 10.42 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.9399, allocations: 4 kB / 1.026 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.796e-05/0.9399, allocations: 8 kB / 1.026 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.9399, allocations: 0 / 1.026 GB, free: 10.41 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.94, allocations: 11.42 kB / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.94, allocations: 0 / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.94, allocations: 0 / 1.026 GB, free: 10.4 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002343/0.9402, allocations: 144.3 kB / 1.026 GB, free: 10.26 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 7.981e-05/0.9403, allocations: 99.34 kB / 1.026 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.9403, allocations: 10.88 kB / 1.026 GB, free: 10.14 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.393e-05/0.9404, allocations: 4 kB / 1.026 GB, free: 10.13 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.652e-05/0.9405, allocations: 7.984 kB / 1.026 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.9405, allocations: 4 kB / 1.026 GB, free: 10.12 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.000172/0.9407, allocations: 195.9 kB / 1.027 GB, free: 9.965 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9407, allocations: 0 / 1.027 GB, free: 9.965 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002512/0.9409, allocations: 35.38 kB / 1.027 GB, free: 9.934 MB / 0.6511 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.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0008423/0.9418, allocations: 374.1 kB / 1.027 GB, free: 9.648 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001689/0.9419, allocations: 68.42 kB / 1.027 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.942, allocations: 0 / 1.027 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.527e-05/0.942, allocations: 42.48 kB / 1.027 GB, free: 9.57 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.9423, allocations: 36.38 kB / 1.027 GB, free: 9.543 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000481/0.9428, allocations: 225.5 kB / 1.027 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.9432, allocations: 0.7275 MB / 1.028 GB, free: 8.574 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 8.014e-05/0.9433, allocations: 24.27 kB / 1.028 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.504e-05/0.9433, allocations: 15.44 kB / 1.028 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of SimCode: time 2.21e-07/0.9433, allocations: 4 kB / 1.028 GB, free: 8.535 MB / 0.6511 GB Notification: Performance of Templates: time 0.005266/0.9486, allocations: 2.126 MB / 1.03 GB, free: 6.434 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches