Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.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_latest_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_latest_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.001226/0.001226, allocations: 99.7 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.00135/0.00135, allocations: 177.3 kB / 15.94 MB, free: 228 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.51/1.51, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.934/2.934, allocations: 436.5 MB / 0.7104 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003794/0.0003794, allocations: 15.98 kB / 0.8708 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8187/0.8191, allocations: 153.7 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002753/0.8219, allocations: 1.458 MB / 1.022 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001724/0.8237, allocations: 0.9213 MB / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.579e-05/0.8238, allocations: 0 / 1.023 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006738/0.8245, allocations: 147.6 kB / 1.023 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.8247, allocations: 87.75 kB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.8251, allocations: 150.5 kB / 1.023 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.8253, allocations: 107.8 kB / 1.024 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.8254, allocations: 13.12 kB / 1.024 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001006/0.8255, allocations: 59.75 kB / 1.024 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.8256, allocations: 63.75 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.714e-05/0.8257, allocations: 4 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001121/0.8258, allocations: 31.98 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.277e-05/0.8259, allocations: 35.89 kB / 1.024 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.494e-05/0.8259, allocations: 49.58 kB / 1.024 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002077/0.8261, allocations: 149.6 kB / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.8262, allocations: 0 / 1.024 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of FrontEnd: time 4.338e-06/0.8262, allocations: 8 kB / 1.024 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.751e-06/0.8262, allocations: 0 / 1.024 GB, free: 13.8 MB / 0.7794 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.0007156/0.8269, allocations: 472.2 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.8269, allocations: 11.98 kB / 1.024 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.506e-05/0.827, allocations: 15.81 kB / 1.024 GB, free: 13.26 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.8274, allocations: 243.7 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.8274, allocations: 3.938 kB / 1.025 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.8274, allocations: 8 kB / 1.025 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.8276, allocations: 91.33 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.8276, allocations: 0 / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.8276, allocations: 4 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.8277, allocations: 3.984 kB / 1.025 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.8278, allocations: 35.92 kB / 1.025 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006161/0.8284, allocations: 360.7 kB / 1.025 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001945/0.8286, allocations: 74.61 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.581e-05/0.8286, allocations: 0 / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001897/0.8288, allocations: 75.45 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.743e-06/0.8288, allocations: 0 / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0004086/0.8293, allocations: 234.8 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/0.8293, allocations: 81.11 kB / 1.026 GB, free: 11.9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.8296, allocations: 266.9 kB / 1.026 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.8297, allocations: 25.7 kB / 1.026 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.704e-05/0.8298, allocations: 120 kB / 1.026 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.8298, allocations: 15.72 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.552e-06/0.8298, allocations: 4 kB / 1.026 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.83, allocations: 330.8 kB / 1.026 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.058e-05/0.83, allocations: 28 kB / 1.026 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.361e-05/0.8301, allocations: 55.41 kB / 1.026 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.912e-05/0.8302, allocations: 39.89 kB / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.8302, allocations: 0 / 1.026 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00021/0.8304, allocations: 117.5 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.8305, allocations: 12 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.8305, allocations: 4 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.8305, allocations: 3.984 kB / 1.027 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.014e-05/0.8306, allocations: 8 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.839e-06/0.8306, allocations: 0 / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.464e-05/0.8307, allocations: 15.84 kB / 1.027 GB, free: 10.83 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.8307, allocations: 0 / 1.027 GB, free: 10.83 MB / 0.7794 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.0001767/0.8309, allocations: 157.7 kB / 1.027 GB, free: 10.66 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.8309, allocations: 15.81 kB / 1.027 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.34e-05/0.8309, allocations: 17.41 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.831, allocations: 4 kB / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.831, allocations: 0 / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.831, allocations: 3.984 kB / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002998/0.8313, allocations: 217.6 kB / 1.027 GB, free: 10.37 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.8313, allocations: 3.953 kB / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.988e-05/0.8313, allocations: 4 kB / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.8313, allocations: 96 / 1.027 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.8313, allocations: 7.938 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.8313, allocations: 0 / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.8314, allocations: 4 kB / 1.027 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.8316, allocations: 148.8 kB / 1.027 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.568e-05/0.8317, allocations: 100.8 kB / 1.027 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.036e-05/0.8318, allocations: 7.984 kB / 1.027 GB, free: 10.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.076e-05/0.8318, allocations: 4 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.8319, allocations: 4 kB / 1.027 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.8319, allocations: 7.984 kB / 1.027 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001737/0.8321, allocations: 188.6 kB / 1.027 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8321, allocations: 0 / 1.027 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002565/0.8323, allocations: 35.98 kB / 1.028 GB, free: 9.824 MB / 0.7794 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.0009834/0.8333, allocations: 425.2 kB / 1.028 GB, free: 9.555 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002009/0.8335, allocations: 71.89 kB / 1.028 GB, free: 9.484 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.8336, allocations: 8.062 kB / 1.028 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 7.611e-05/0.8336, allocations: 35.98 kB / 1.028 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002401/0.8339, allocations: 40.78 kB / 1.028 GB, free: 9.402 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005091/0.8344, allocations: 310.2 kB / 1.028 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.8348, allocations: 0.7243 MB / 1.029 GB, free: 8.324 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.872e-05/0.8349, allocations: 29.7 kB / 1.029 GB, free: 8.297 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.836e-05/0.8349, allocations: 19.44 kB / 1.029 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.8349, allocations: 0 / 1.029 GB, free: 8.277 MB / 0.7794 GB Notification: Performance of Templates: time 0.005338/0.8402, allocations: 2.121 MB / 1.031 GB, free: 6.176 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches