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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000761/0.000761, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008851/0.0008852, allocations: 168.7 kB / 15.95 MB, free: 204 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.365/1.365, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.379/2.379, allocations: 390.4 MB / 0.6655 GB, free: 2.961 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003575/0.0003575, allocations: 16 kB / 0.8149 GB, free: 14.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8441/0.8444, allocations: 142.3 MB / 0.9538 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.00282/0.8473, allocations: 1.468 MB / 0.9553 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001546/0.8489, allocations: 0.9395 MB / 0.9562 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.849, allocations: 1.188 kB / 0.9562 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000551/0.8496, allocations: 151 kB / 0.9563 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002277/0.8498, allocations: 95.03 kB / 0.9564 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.8503, allocations: 138.8 kB / 0.9566 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001982/0.8505, allocations: 149.5 kB / 0.9567 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001047/0.8506, allocations: 23.17 kB / 0.9567 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001066/0.8507, allocations: 62.34 kB / 0.9568 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.8508, allocations: 66.28 kB / 0.9569 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.8508, allocations: 2.281 kB / 0.9569 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.851, allocations: 49.16 kB / 0.9569 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.456e-05/0.8511, allocations: 31.47 kB / 0.9569 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.8511, allocations: 44.45 kB / 0.957 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.8513, allocations: 153.6 kB / 0.9571 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.8513, allocations: 1.188 kB / 0.9571 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.372e-06/0.8513, allocations: 3.938 kB / 0.9571 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.8513, allocations: 0 / 0.9571 GB, free: 5.629 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.0005956/0.852, allocations: 484.1 kB / 0.9576 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.852, allocations: 7 kB / 0.9576 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.428e-05/0.852, allocations: 36.81 kB / 0.9576 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.8521, allocations: 23.88 kB / 0.9577 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.8523, allocations: 229.3 kB / 0.9579 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.8523, allocations: 2.719 kB / 0.9579 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.8524, allocations: 7.062 kB / 0.9579 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001615/0.8525, allocations: 91.94 kB / 0.958 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.8525, allocations: 0 / 0.958 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.8526, allocations: 1.719 kB / 0.958 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.863e-05/0.8526, allocations: 5.844 kB / 0.958 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.615e-05/0.8527, allocations: 35.91 kB / 0.958 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004171/0.8531, allocations: 363.2 kB / 0.9584 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001601/0.8533, allocations: 74.2 kB / 0.9584 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.656e-05/0.8533, allocations: 36.72 kB / 0.9585 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.264e-05/0.8534, allocations: 1.781 kB / 0.9585 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001568/0.8535, allocations: 84.78 kB / 0.9585 GB, free: 4.234 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.8535, allocations: 4 kB / 0.9585 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0002983/0.8538, allocations: 147.2 kB / 0.9587 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.972e-05/0.8539, allocations: 79.14 kB / 0.9588 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002475/0.8541, allocations: 266.4 kB / 0.959 GB, free: 3.867 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.243e-05/0.8542, allocations: 27.17 kB / 0.959 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.484e-05/0.8542, allocations: 116.6 kB / 0.9592 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.666e-05/0.8542, allocations: 24.14 kB / 0.9592 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.61e-06/0.8543, allocations: 0 / 0.9592 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.673e-05/0.8543, allocations: 331.9 kB / 0.9595 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.001e-05/0.8544, allocations: 26.61 kB / 0.9595 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.928e-05/0.8545, allocations: 52.55 kB / 0.9596 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.295e-05/0.8545, allocations: 37.42 kB / 0.9596 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.8545, allocations: 1.75 kB / 0.9596 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001658/0.8547, allocations: 121.5 kB / 0.9597 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.8547, allocations: 10.02 kB / 0.9597 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.8547, allocations: 0 / 0.9597 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.8548, allocations: 1.312 kB / 0.9597 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.291e-05/0.8548, allocations: 12.52 kB / 0.9597 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.8549, allocations: 1.531 kB / 0.9597 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.642e-05/0.8549, allocations: 8.531 kB / 0.9598 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.8549, allocations: 3.094 kB / 0.9598 GB, free: 3.215 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 9.943e-05/0.855, allocations: 143.8 kB / 0.9599 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.8551, allocations: 18.34 kB / 0.9599 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.506e-05/0.8551, allocations: 27.98 kB / 0.9599 GB, free: 3.051 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.8551, allocations: 11.05 kB / 0.96 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.8551, allocations: 0 / 0.96 GB, free: 3.043 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.8551, allocations: 3.938 kB / 0.96 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.8553, allocations: 219.2 kB / 0.9602 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.8553, allocations: 0 / 0.9602 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.124e-05/0.8553, allocations: 4.062 kB / 0.9602 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.8553, allocations: 4.984 kB / 0.9602 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.8553, allocations: 4.969 kB / 0.9602 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.8554, allocations: 7.938 kB / 0.9602 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.8554, allocations: 1.031 kB / 0.9602 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.8556, allocations: 141.7 kB / 0.9603 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.775e-05/0.8556, allocations: 98.34 kB / 0.9604 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/0.8556, allocations: 5.375 kB / 0.9604 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.691e-05/0.8557, allocations: 6.734 kB / 0.9604 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.676e-05/0.8557, allocations: 12.08 kB / 0.9604 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.8557, allocations: 6.75 kB / 0.9604 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001489/0.8559, allocations: 199.6 kB / 0.9606 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8559, allocations: 0 / 0.9606 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002383/0.8561, allocations: 27.38 kB / 0.9607 GB, free: 2.418 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.001193/0.8573, allocations: 0.9961 MB / 0.9616 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001936/0.8576, allocations: 74.42 kB / 0.9617 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.8576, allocations: 0 / 0.9617 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 7.62e-05/0.8576, allocations: 37.61 kB / 0.9617 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.8579, allocations: 36.86 kB / 0.9618 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.8594, allocations: 0.9785 MB / 0.9627 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.8595, allocations: 0.7191 MB / 0.9634 GB, free: 216 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.519e-05/0.8596, allocations: 30.88 kB / 0.9635 GB, free: 196 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.889e-05/0.8597, allocations: 49.28 kB / 0.9635 GB, free: 160 kB / 0.7169 GB Notification: Performance of SimCode: time 1.122e-06/0.8597, allocations: 0 / 0.9635 GB, free: 160 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.8735, allocations: 3.966 MB / 0.9674 GB, free: 14.28 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/0.8737, allocations: 239.2 kB / 0.9676 GB, free: 14.02 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/2.632, allocations: 0 / 0.9676 GB, free: 14.02 MB / 0.7325 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat does not exist to compare? outputFormat=mat