Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.899/1.899, allocations: 289.9 MB / 297.4 MB, free: 6.43 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00162/0.001621, allocations: 180.8 kB / 366.7 MB, free: 1.676 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.912/1.912, allocations: 205.3 MB / 0.626 GB, free: 7.172 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 81.88 kB / 0.74 GB, free: 39.55 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.802e-05/3.803e-05, allocations: 8 kB / 0.8598 GB, free: 12.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6857/0.6857, allocations: 116.3 MB / 0.9733 GB, free: 76.39 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2064/0.8922, allocations: 142.2 MB / 1.112 GB, free: 7.918 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003213/0.8925, allocations: 78.58 kB / 1.112 GB, free: 7.844 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.02229/0.9149, allocations: 5.358 MB / 1.118 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.174e-06/0.9149, allocations: 0 / 1.118 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 2.988e-05/0.915, allocations: 4.75 kB / 1.118 GB, free: 2.531 MB / 0.7136 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.0008521/0.9158, allocations: 464.9 kB / 1.118 GB, free: 2.027 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/0.9159, allocations: 8.031 kB / 1.118 GB, free: 2.02 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001121/0.916, allocations: 17.28 kB / 1.118 GB, free: 2.004 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005441/0.9166, allocations: 255.6 kB / 1.118 GB, free: 1.711 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.9166, allocations: 8 kB / 1.118 GB, free: 1.703 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.9166, allocations: 5.281 kB / 1.118 GB, free: 1.699 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001421/0.9168, allocations: 27.98 kB / 1.118 GB, free: 1.672 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000186/0.917, allocations: 89.36 kB / 1.118 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.917, allocations: 4 kB / 1.118 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.917, allocations: 6.812 kB / 1.118 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.597e-05/0.9171, allocations: 0 / 1.118 GB, free: 1.566 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007015/0.9178, allocations: 353.2 kB / 1.119 GB, free: 1.184 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001902/0.918, allocations: 74.67 kB / 1.119 GB, free: 1.102 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.237e-05/0.9181, allocations: 40.25 kB / 1.119 GB, free: 1.062 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.9181, allocations: 0 / 1.119 GB, free: 1.062 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.9183, allocations: 75.39 kB / 1.119 GB, free: 0.9766 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.9184, allocations: 3.938 kB / 1.119 GB, free: 0.9727 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8): time 0.000387/0.9188, allocations: 109.5 kB / 1.119 GB, free: 0.8594 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.9188, allocations: 103.4 kB / 1.119 GB, free: 0.7344 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003606/0.9192, allocations: 232.3 kB / 1.119 GB, free: 0.5039 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.9193, allocations: 33.7 kB / 1.119 GB, free: 476 kB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.297e-05/0.9194, allocations: 112.1 kB / 1.119 GB, free: 360 kB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.608e-05/0.9194, allocations: 19.7 kB / 1.12 GB, free: 340 kB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/0.9194, allocations: 4 kB / 1.12 GB, free: 336 kB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0002203/0.9197, allocations: 335.6 kB / 1.12 GB, free: 15.99 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.779e-05/0.9197, allocations: 23.91 kB / 1.12 GB, free: 15.97 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.9199, allocations: 71.61 kB / 1.12 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.92, allocations: 27.98 kB / 1.12 GB, free: 15.86 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.92, allocations: 4 kB / 1.12 GB, free: 15.86 MB / 0.7292 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003179/0.9203, allocations: 112.2 kB / 1.12 GB, free: 15.74 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.9204, allocations: 8.031 kB / 1.12 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.9204, allocations: 0 / 1.12 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.235e-05/0.9204, allocations: 4 kB / 1.12 GB, free: 15.73 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.9206, allocations: 15.98 kB / 1.12 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.9206, allocations: 0 / 1.12 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.9207, allocations: 4 kB / 1.12 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.9208, allocations: 4 kB / 1.12 GB, free: 15.71 MB / 0.7292 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 0.0001344/0.9209, allocations: 115.9 kB / 1.12 GB, free: 15.59 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003199/0.9212, allocations: 113.4 kB / 1.12 GB, free: 15.48 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.9213, allocations: 23.75 kB / 1.12 GB, free: 15.45 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003666/0.9217, allocations: 132 kB / 1.12 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.9217, allocations: 0 / 1.12 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.9217, allocations: 5.812 kB / 1.12 GB, free: 15.32 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.862e-06/0.9217, allocations: 3.953 kB / 1.12 GB, free: 15.31 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002924/0.922, allocations: 214 kB / 1.121 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.9221, allocations: 0 / 1.121 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.653e-05/0.9221, allocations: 4 kB / 1.121 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.9221, allocations: 0 / 1.121 GB, free: 15.06 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.9222, allocations: 7.984 kB / 1.121 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.9222, allocations: 4 kB / 1.121 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.9222, allocations: 0 / 1.121 GB, free: 15.05 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000326/0.9225, allocations: 140.8 kB / 1.121 GB, free: 14.89 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001113/0.9227, allocations: 100.9 kB / 1.121 GB, free: 14.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.948e-05/0.9227, allocations: 4 kB / 1.121 GB, free: 14.77 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001021/0.9228, allocations: 3.984 kB / 1.121 GB, free: 14.77 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.164e-05/0.9229, allocations: 9.406 kB / 1.121 GB, free: 14.76 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.923, allocations: 11.98 kB / 1.121 GB, free: 14.75 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002855/0.9232, allocations: 183 kB / 1.121 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5.11e-07/0.9233, allocations: 4 kB / 1.121 GB, free: 14.57 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004869/0.9238, allocations: 43.94 kB / 1.121 GB, free: 14.52 MB / 0.7292 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.002147/0.9259, allocations: 0.9496 MB / 1.122 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003055/0.9263, allocations: 75.91 kB / 1.122 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.9263, allocations: 0 / 1.122 GB, free: 13.61 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.9264, allocations: 35.98 kB / 1.122 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.9269, allocations: 31.98 kB / 1.122 GB, free: 13.55 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.9279, allocations: 296.6 kB / 1.123 GB, free: 13.22 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004824/0.9284, allocations: 0.724 MB / 1.123 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001576/0.9286, allocations: 26.44 kB / 1.123 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.9287, allocations: 51.41 kB / 1.123 GB, free: 12.4 MB / 0.7292 GB Notification: Performance of SimCode: time 6.11e-07/0.9287, allocations: 0 / 1.123 GB, free: 12.4 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03142/0.9602, allocations: 3.796 MB / 1.127 GB, free: 8.703 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004341/0.9607, allocations: 166.1 kB / 1.127 GB, free: 8.512 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.685, allocations: 3.281 kB / 1.127 GB, free: 8.512 MB / 0.7292 GB (rm -f Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_8_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)