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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.258/2.258, allocations: 387.4 MB / 394.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 188.5 kB / 487.4 MB, free: 5.051 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.497/1.497, allocations: 221.5 MB / 0.7824 GB, free: 0.9688 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 103.8 kB / 0.9219 GB, free: 2.203 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 3.739e-05/3.751e-05, allocations: 6.031 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3028, allocations: 142.4 MB / 1.206 GB, free: 43.86 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9674/1.27, allocations: 153 MB / 1.355 GB, free: 18.12 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002322/1.271, allocations: 74.23 kB / 1.355 GB, free: 18.12 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01447/1.285, allocations: 5.518 MB / 1.361 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.593e-06/1.285, allocations: 0 / 1.361 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.892e-05/1.285, allocations: 7.812 kB / 1.361 GB, free: 33.52 MB / 0.8386 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.0005101/1.286, allocations: 460.1 kB / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/1.286, allocations: 11.17 kB / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.524e-05/1.286, allocations: 15.5 kB / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/1.286, allocations: 256.5 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/1.286, allocations: 3.875 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/1.286, allocations: 0 / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.61e-05/1.286, allocations: 36.77 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001229/1.286, allocations: 82.81 kB / 1.362 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/1.286, allocations: 0 / 1.362 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/1.286, allocations: 0 / 1.362 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/1.286, allocations: 6.734 kB / 1.362 GB, free: 32.81 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004813/1.287, allocations: 338.2 kB / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/1.287, allocations: 77.45 kB / 1.362 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.438e-05/1.287, allocations: 29.27 kB / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/1.287, allocations: 0 / 1.362 GB, free: 32.53 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001152/1.287, allocations: 80.25 kB / 1.362 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=10): time 1.483e-06/1.287, allocations: 0 / 1.362 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10): time 0.0002498/1.287, allocations: 118.7 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/1.287, allocations: 77.11 kB / 1.362 GB, free: 32.34 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000222/1.288, allocations: 233.6 kB / 1.363 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/1.288, allocations: 29.58 kB / 1.363 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.441e-05/1.288, allocations: 119.1 kB / 1.363 GB, free: 32.12 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/1.288, allocations: 20.53 kB / 1.363 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.438e-06/1.288, allocations: 3.938 kB / 1.363 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000144/1.288, allocations: 332 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.696e-05/1.288, allocations: 31 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.099e-05/1.288, allocations: 54.86 kB / 1.363 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.24e-05/1.288, allocations: 36.58 kB / 1.363 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/1.288, allocations: 3.812 kB / 1.363 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001536/1.288, allocations: 107 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/1.288, allocations: 5.375 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/1.288, allocations: 7.812 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/1.288, allocations: 4.062 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.624e-05/1.289, allocations: 14.31 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/1.289, allocations: 3.812 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.129e-05/1.289, allocations: 6.219 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/1.289, allocations: 0 / 1.363 GB, free: 31.7 MB / 0.8386 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 8.439e-05/1.289, allocations: 117.6 kB / 1.363 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001578/1.289, allocations: 115.6 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.118e-05/1.289, allocations: 15.59 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001917/1.289, allocations: 119.3 kB / 1.364 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.537e-06/1.289, allocations: 3.875 kB / 1.364 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/1.289, allocations: 0 / 1.364 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/1.289, allocations: 7 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/1.289, allocations: 207 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/1.289, allocations: 0 / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.868e-05/1.289, allocations: 7.812 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/1.289, allocations: 3.938 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/1.289, allocations: 2.953 kB / 1.364 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/1.289, allocations: 3.938 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.289, allocations: 11.8 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001749/1.29, allocations: 144.9 kB / 1.364 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/1.29, allocations: 105.8 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.19e-05/1.29, allocations: 7.594 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.43e-05/1.29, allocations: 0 / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.017e-05/1.29, allocations: 10.61 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/1.29, allocations: 3.812 kB / 1.364 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000162/1.29, allocations: 191.1 kB / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.29, allocations: 0 / 1.364 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002481/1.29, allocations: 37.28 kB / 1.364 GB, free: 31.04 MB / 0.8386 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.001123/1.291, allocations: 0.9367 MB / 1.365 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001579/1.292, allocations: 85.02 kB / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.292, allocations: 0 / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 5.109e-05/1.292, allocations: 33.84 kB / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000238/1.292, allocations: 29.64 kB / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005887/1.292, allocations: 287 kB / 1.366 GB, free: 30.16 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/1.293, allocations: 0.7326 MB / 1.366 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.439e-05/1.293, allocations: 27.91 kB / 1.367 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.873e-05/1.293, allocations: 49.67 kB / 1.367 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of SimCode: time 2.31e-07/1.293, allocations: 0 / 1.367 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/1.314, allocations: 3.634 MB / 1.37 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/1.314, allocations: 173 kB / 1.37 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/2.961, allocations: 6.125 kB / 1.37 GB, free: 28.95 MB / 0.8386 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