Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.299/2.299, allocations: 393.5 MB / 408.4 MB, free: 10.94 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.001094/0.001094, allocations: 179.9 kB / 0.4901 GB, free: 2.227 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.727/1.727, allocations: 223.1 MB / 0.7992 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 90.52 kB / 0.9396 GB, free: 1.895 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003678, allocations: 13.84 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3613, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2727/0.6341, allocations: 154.5 MB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003376/0.6345, allocations: 79.95 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02185/0.6564, allocations: 5.545 MB / 1.386 GB, free: 9.305 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.625e-06/0.6564, allocations: 4 kB / 1.386 GB, free: 9.301 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.463e-05/0.6564, allocations: 0 / 1.386 GB, free: 9.301 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009765/0.6574, allocations: 0.4923 MB / 1.386 GB, free: 8.754 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.391e-05/0.6575, allocations: 12.56 kB / 1.386 GB, free: 8.742 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.211e-05/0.6576, allocations: 38.55 kB / 1.386 GB, free: 8.695 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.928e-05/0.6577, allocations: 23.77 kB / 1.386 GB, free: 8.672 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005665/0.6583, allocations: 255.7 kB / 1.386 GB, free: 8.379 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.6583, allocations: 0 / 1.386 GB, free: 8.379 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.6583, allocations: 7.938 kB / 1.386 GB, free: 8.371 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002885/0.6586, allocations: 104.2 kB / 1.387 GB, free: 8.254 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.6587, allocations: 3.984 kB / 1.387 GB, free: 8.25 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.6587, allocations: 3.984 kB / 1.387 GB, free: 8.246 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.193e-05/0.6587, allocations: 4 kB / 1.387 GB, free: 8.242 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001603/0.6589, allocations: 39.92 kB / 1.387 GB, free: 8.203 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000838/0.6598, allocations: 368.7 kB / 1.387 GB, free: 7.793 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.6601, allocations: 94.72 kB / 1.387 GB, free: 7.691 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.05e-05/0.6601, allocations: 4 kB / 1.387 GB, free: 7.688 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002637/0.6604, allocations: 79.44 kB / 1.387 GB, free: 7.598 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 2.855e-06/0.6604, allocations: 3.938 kB / 1.387 GB, free: 7.594 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0006181/0.6611, allocations: 226.6 kB / 1.387 GB, free: 7.348 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.6612, allocations: 110.8 kB / 1.387 GB, free: 7.215 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004219/0.6616, allocations: 246.6 kB / 1.388 GB, free: 6.965 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.266e-05/0.6617, allocations: 29.7 kB / 1.388 GB, free: 6.93 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.6618, allocations: 120 kB / 1.388 GB, free: 6.809 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.6618, allocations: 15.8 kB / 1.388 GB, free: 6.793 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.198e-06/0.6618, allocations: 4 kB / 1.388 GB, free: 6.789 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001646/0.662, allocations: 326.8 kB / 1.388 GB, free: 6.461 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.781e-05/0.6621, allocations: 27.98 kB / 1.388 GB, free: 6.434 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.6623, allocations: 76.27 kB / 1.388 GB, free: 6.344 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001153/0.6624, allocations: 32.3 kB / 1.388 GB, free: 6.312 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.6624, allocations: 0 / 1.388 GB, free: 6.312 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003324/0.6628, allocations: 121.4 kB / 1.388 GB, free: 6.188 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.635e-05/0.6628, allocations: 8 kB / 1.388 GB, free: 6.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.6628, allocations: 3.984 kB / 1.388 GB, free: 6.176 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.6629, allocations: 7.984 kB / 1.388 GB, free: 6.168 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.663, allocations: 12 kB / 1.388 GB, free: 6.156 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.663, allocations: 0 / 1.388 GB, free: 6.156 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.6632, allocations: 15.86 kB / 1.388 GB, free: 6.141 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.6632, allocations: 4.188 kB / 1.388 GB, free: 6.137 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * 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.0002625/0.6635, allocations: 137.8 kB / 1.389 GB, free: 5.992 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.35e-05/0.6635, allocations: 19.75 kB / 1.389 GB, free: 5.973 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000438/0.664, allocations: 138.9 kB / 1.389 GB, free: 5.828 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/0.664, allocations: 4 kB / 1.389 GB, free: 5.824 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.664, allocations: 3.953 kB / 1.389 GB, free: 5.82 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.664, allocations: 0 / 1.389 GB, free: 5.82 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003127/0.6644, allocations: 233.5 kB / 1.389 GB, free: 5.543 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.6644, allocations: 0 / 1.389 GB, free: 5.543 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.771e-05/0.6644, allocations: 7.984 kB / 1.389 GB, free: 5.535 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.6645, allocations: 0 / 1.389 GB, free: 5.535 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.53e-05/0.6645, allocations: 4 kB / 1.389 GB, free: 5.531 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.6645, allocations: 4 kB / 1.389 GB, free: 5.527 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.6645, allocations: 0 / 1.389 GB, free: 5.527 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003656/0.6649, allocations: 156.8 kB / 1.389 GB, free: 5.355 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001394/0.665, allocations: 100.9 kB / 1.389 GB, free: 5.238 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.058e-05/0.6651, allocations: 0 / 1.389 GB, free: 5.238 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.807e-05/0.6652, allocations: 8 kB / 1.389 GB, free: 5.23 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.365e-05/0.6653, allocations: 7.984 kB / 1.389 GB, free: 5.223 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.6653, allocations: 4 kB / 1.389 GB, free: 5.219 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002963/0.6656, allocations: 204.5 kB / 1.389 GB, free: 5.02 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2e-07/0.6656, allocations: 0 / 1.389 GB, free: 5.02 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004663/0.6661, allocations: 51.92 kB / 1.389 GB, free: 4.969 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.u,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * 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.002049/0.6682, allocations: 1.019 MB / 1.39 GB, free: 4.086 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003394/0.6685, allocations: 87.89 kB / 1.391 GB, free: 4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6685, allocations: 4 kB / 1.391 GB, free: 3.996 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.6687, allocations: 35.97 kB / 1.391 GB, free: 3.961 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.6691, allocations: 27.98 kB / 1.391 GB, free: 3.934 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.6714, allocations: 1.15 MB / 1.392 GB, free: 2.723 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.6719, allocations: 0.7243 MB / 1.392 GB, free: 1.973 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001231/0.672, allocations: 29.31 kB / 1.392 GB, free: 1.941 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.6721, allocations: 51.41 kB / 1.393 GB, free: 1.895 MB / 0.8855 GB Notification: Performance of SimCode: time 6.51e-07/0.6721, allocations: 0 / 1.393 GB, free: 1.895 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.6935, allocations: 4.258 MB / 1.397 GB, free: 13.78 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002737/0.6938, allocations: 222.7 kB / 1.397 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.763/2.457, allocations: 0.9844 kB / 1.397 GB, free: 13.54 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat does not exist to compare? outputFormat=mat