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.059/2.059, allocations: 390.3 MB / 402.8 MB, free: 6.703 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.001142/0.001142, allocations: 184.9 kB / 496.1 MB, free: 12.87 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.5/1.5, allocations: 221.3 MB / 0.7915 GB, free: 5.418 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.0009846/0.0009845, allocations: 95.95 kB / 0.9317 GB, free: 5.719 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.97e-05/4.003e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2826, allocations: 143 MB / 1.219 GB, free: 13.44 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8119/1.095, allocations: 154.4 MB / 1.37 GB, free: 15.63 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/1.095, allocations: 82.69 kB / 1.37 GB, free: 15.59 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.01514/1.11, allocations: 5.537 MB / 1.375 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.838e-06/1.11, allocations: 4 kB / 1.375 GB, free: 10.94 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.89e-05/1.11, allocations: 0 / 1.375 GB, free: 10.94 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.00067/1.111, allocations: 463.2 kB / 1.376 GB, free: 10.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/1.111, allocations: 12.02 kB / 1.376 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.908e-05/1.111, allocations: 38.25 kB / 1.376 GB, free: 10.39 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.461e-05/1.111, allocations: 19.77 kB / 1.376 GB, free: 10.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/1.111, allocations: 263.2 kB / 1.376 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/1.111, allocations: 11.94 kB / 1.376 GB, free: 10.08 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/1.111, allocations: 0 / 1.376 GB, free: 10.08 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001955/1.112, allocations: 97.61 kB / 1.376 GB, free: 9.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/1.112, allocations: 0 / 1.376 GB, free: 9.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/1.112, allocations: 2.875 kB / 1.376 GB, free: 9.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/1.112, allocations: 0 / 1.376 GB, free: 9.98 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.862e-05/1.112, allocations: 37.61 kB / 1.376 GB, free: 9.953 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006219/1.112, allocations: 379.9 kB / 1.376 GB, free: 9.574 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001681/1.113, allocations: 88.95 kB / 1.376 GB, free: 9.5 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.773e-05/1.113, allocations: 30.48 kB / 1.377 GB, free: 9.477 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/1.113, allocations: 0 / 1.377 GB, free: 9.477 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/1.113, allocations: 81.19 kB / 1.377 GB, free: 9.395 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/1.113, allocations: 0 / 1.377 GB, free: 9.395 MB / 0.8386 GB Notification: Performance of matching and sorting (n=8): time 0.0002831/1.113, allocations: 114 kB / 1.377 GB, free: 9.297 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.91e-05/1.113, allocations: 106.8 kB / 1.377 GB, free: 9.168 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/1.114, allocations: 244 kB / 1.377 GB, free: 8.957 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/1.114, allocations: 37.31 kB / 1.377 GB, free: 8.918 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.017e-05/1.114, allocations: 116 kB / 1.377 GB, free: 8.824 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.771e-05/1.114, allocations: 23.03 kB / 1.377 GB, free: 8.805 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.41e-06/1.114, allocations: 4 kB / 1.377 GB, free: 8.801 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001503/1.114, allocations: 330.1 kB / 1.378 GB, free: 8.477 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.891e-05/1.114, allocations: 22.81 kB / 1.378 GB, free: 8.461 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.127e-05/1.114, allocations: 71.59 kB / 1.378 GB, free: 8.391 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.169e-05/1.114, allocations: 26.48 kB / 1.378 GB, free: 8.371 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/1.114, allocations: 4 kB / 1.378 GB, free: 8.367 MB / 0.8386 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001806/1.114, allocations: 107 kB / 1.378 GB, free: 8.273 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/1.114, allocations: 8 kB / 1.378 GB, free: 8.266 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/1.114, allocations: 0 / 1.378 GB, free: 8.266 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/1.114, allocations: 7.938 kB / 1.378 GB, free: 8.258 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.976e-05/1.115, allocations: 15.94 kB / 1.378 GB, free: 8.246 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/1.115, allocations: 3.938 kB / 1.378 GB, free: 8.242 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.535e-05/1.115, allocations: 7.938 kB / 1.378 GB, free: 8.234 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/1.115, allocations: 8.328 kB / 1.378 GB, free: 8.227 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: 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 () * 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.543e-05/1.115, allocations: 121.1 kB / 1.378 GB, free: 8.105 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.15e-05/1.115, allocations: 19.75 kB / 1.378 GB, free: 8.086 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002293/1.115, allocations: 128 kB / 1.378 GB, free: 7.98 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/1.115, allocations: 7.938 kB / 1.378 GB, free: 7.973 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/1.115, allocations: 0 / 1.378 GB, free: 7.973 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/1.115, allocations: 4 kB / 1.378 GB, free: 7.969 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/1.115, allocations: 220.7 kB / 1.378 GB, free: 7.727 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/1.115, allocations: 0 / 1.378 GB, free: 7.727 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.297e-05/1.115, allocations: 8 kB / 1.378 GB, free: 7.719 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/1.115, allocations: 4 kB / 1.378 GB, free: 7.715 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.749e-05/1.115, allocations: 11.36 kB / 1.378 GB, free: 7.707 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/1.115, allocations: 3.938 kB / 1.378 GB, free: 7.703 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/1.115, allocations: 3.953 kB / 1.378 GB, free: 7.699 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001995/1.116, allocations: 149.1 kB / 1.378 GB, free: 7.555 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.135e-05/1.116, allocations: 103.8 kB / 1.379 GB, free: 7.438 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/1.116, allocations: 3.375 kB / 1.379 GB, free: 7.438 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.999e-05/1.116, allocations: 7.984 kB / 1.379 GB, free: 7.43 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/1.116, allocations: 11.98 kB / 1.379 GB, free: 7.418 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/1.116, allocations: 7.641 kB / 1.379 GB, free: 7.414 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002085/1.116, allocations: 194.9 kB / 1.379 GB, free: 7.258 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.116, allocations: 0 / 1.379 GB, free: 7.258 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000284/1.116, allocations: 51.38 kB / 1.379 GB, free: 7.211 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: 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) * 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.001425/1.118, allocations: 0.9686 MB / 1.38 GB, free: 6.363 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002074/1.118, allocations: 79.66 kB / 1.38 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/1.118, allocations: 0 / 1.38 GB, free: 6.305 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 7.223e-05/1.118, allocations: 42.73 kB / 1.38 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002546/1.118, allocations: 34.95 kB / 1.38 GB, free: 6.246 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006084/1.119, allocations: 288.9 kB / 1.38 GB, free: 5.961 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/1.119, allocations: 0.7309 MB / 1.381 GB, free: 5.207 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.957e-05/1.119, allocations: 25.5 kB / 1.381 GB, free: 5.18 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.592e-05/1.119, allocations: 50.59 kB / 1.381 GB, free: 5.156 MB / 0.8386 GB Notification: Performance of SimCode: time 3.31e-07/1.119, allocations: 7.938 kB / 1.381 GB, free: 5.148 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01724/1.137, allocations: 4.222 MB / 1.385 GB, free: 1.07 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/1.137, allocations: 192.5 kB / 1.385 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/2.752, allocations: 0 / 1.385 GB, free: 0.8477 MB / 0.8386 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