Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.8204/0.8204, allocations: 127.4 MB / 134.9 MB, free: 3.465 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001348/0.001348, allocations: 176.9 kB / 164.6 MB, free: 11.59 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.948/1.948, allocations: 205.2 MB / 399.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000902/0.0009018, allocations: 87.83 kB / 476.7 MB, free: 1.504 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 5.201e-05/5.233e-05, allocations: 5.094 kB / 0.5467 GB, free: 95.47 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1956, allocations: 76.77 MB / 0.6216 GB, free: 43.01 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1427/0.3385, allocations: 105.9 MB / 0.725 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.3388, allocations: 79.95 kB / 0.7251 GB, free: 0.9297 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.01516/0.354, allocations: 5.367 MB / 0.7303 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.044e-06/0.354, allocations: 0 / 0.7303 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.238e-05/0.3541, allocations: 4 kB / 0.7303 GB, free: 11.55 MB / 0.5105 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.0005779/0.3546, allocations: 467.6 kB / 0.7308 GB, free: 11.05 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3547, allocations: 12.02 kB / 0.7308 GB, free: 11.04 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.251e-05/0.3548, allocations: 23.77 kB / 0.7308 GB, free: 11.01 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004081/0.3552, allocations: 255.7 kB / 0.731 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.259e-05/0.3552, allocations: 4 kB / 0.731 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.891e-05/0.3552, allocations: 0 / 0.731 GB, free: 10.71 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001036/0.3554, allocations: 35.98 kB / 0.7311 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001436/0.3555, allocations: 88.2 kB / 0.7312 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.3555, allocations: 0 / 0.7312 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.3555, allocations: 0 / 0.7312 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.931e-05/0.3556, allocations: 11.95 kB / 0.7312 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.3561, allocations: 341.2 kB / 0.7315 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000147/0.3563, allocations: 86.7 kB / 0.7316 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.868e-05/0.3563, allocations: 28.91 kB / 0.7316 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.3563, allocations: 8 kB / 0.7316 GB, free: 10.06 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.3565, allocations: 75.39 kB / 0.7317 GB, free: 9.977 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.694e-06/0.3565, allocations: 0 / 0.7317 GB, free: 9.977 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8): time 0.0003273/0.3569, allocations: 113.5 kB / 0.7318 GB, free: 9.859 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.663e-05/0.3569, allocations: 114.7 kB / 0.7319 GB, free: 9.723 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.3572, allocations: 229.9 kB / 0.7321 GB, free: 9.492 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.3572, allocations: 25.7 kB / 0.7322 GB, free: 9.461 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 7.834e-05/0.3573, allocations: 116.1 kB / 0.7323 GB, free: 9.344 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.945e-05/0.3574, allocations: 27.66 kB / 0.7323 GB, free: 9.316 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.791e-06/0.3574, allocations: 0 / 0.7323 GB, free: 9.316 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.3575, allocations: 330.8 kB / 0.7326 GB, free: 8.984 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.282e-05/0.3576, allocations: 24 kB / 0.7326 GB, free: 8.961 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.357e-05/0.3576, allocations: 68.27 kB / 0.7327 GB, free: 8.879 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.3578, allocations: 31.98 kB / 0.7327 GB, free: 8.848 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3578, allocations: 0 / 0.7327 GB, free: 8.848 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001801/0.358, allocations: 109.4 kB / 0.7328 GB, free: 8.734 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.358, allocations: 4 kB / 0.7328 GB, free: 8.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.358, allocations: 0 / 0.7328 GB, free: 8.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.358, allocations: 0 / 0.7328 GB, free: 8.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.3581, allocations: 23.88 kB / 0.7329 GB, free: 8.707 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3581, allocations: 4.141 kB / 0.7329 GB, free: 8.703 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.623e-05/0.3582, allocations: 4 kB / 0.7329 GB, free: 8.699 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.3582, allocations: 8 kB / 0.7329 GB, free: 8.691 MB / 0.5105 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.67e-05/0.3583, allocations: 119 kB / 0.733 GB, free: 8.57 MB / 0.5105 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001793/0.3585, allocations: 113.5 kB / 0.7331 GB, free: 8.453 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.3586, allocations: 15.81 kB / 0.7331 GB, free: 8.438 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000232/0.3588, allocations: 131.4 kB / 0.7332 GB, free: 8.309 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.3588, allocations: 4 kB / 0.7332 GB, free: 8.305 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3588, allocations: 0 / 0.7332 GB, free: 8.305 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3588, allocations: 0 / 0.7332 GB, free: 8.305 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.359, allocations: 198.1 kB / 0.7334 GB, free: 8.074 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.359, allocations: 4 kB / 0.7334 GB, free: 8.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.756e-05/0.3591, allocations: 12 kB / 0.7334 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3591, allocations: 0 / 0.7334 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.3591, allocations: 0 / 0.7334 GB, free: 8.059 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.3591, allocations: 4 kB / 0.7334 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.3591, allocations: 8.125 kB / 0.7335 GB, free: 8.047 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002061/0.3594, allocations: 140.8 kB / 0.7336 GB, free: 7.891 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.709e-05/0.3594, allocations: 100.9 kB / 0.7337 GB, free: 7.773 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.121e-05/0.3595, allocations: 4 kB / 0.7337 GB, free: 7.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.024e-05/0.3595, allocations: 4 kB / 0.7337 GB, free: 7.766 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.281e-05/0.3596, allocations: 11.94 kB / 0.7337 GB, free: 7.754 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.3596, allocations: 11.98 kB / 0.7337 GB, free: 7.742 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001661/0.3598, allocations: 184.4 kB / 0.7339 GB, free: 7.562 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3598, allocations: 0 / 0.7339 GB, free: 7.562 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002914/0.3601, allocations: 55.78 kB / 0.7339 GB, free: 7.508 MB / 0.5105 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.00125/0.3614, allocations: 0.9394 MB / 0.7349 GB, free: 6.625 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001868/0.3616, allocations: 79.89 kB / 0.7349 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3616, allocations: 0 / 0.7349 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.292e-05/0.3616, allocations: 43.98 kB / 0.735 GB, free: 6.504 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002963/0.362, allocations: 27.97 kB / 0.735 GB, free: 6.477 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006323/0.3626, allocations: 286.6 kB / 0.7353 GB, free: 6.156 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.3629, allocations: 0.7317 MB / 0.736 GB, free: 5.398 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.759e-05/0.363, allocations: 33.48 kB / 0.736 GB, free: 5.367 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.864e-05/0.3631, allocations: 55.41 kB / 0.7361 GB, free: 5.312 MB / 0.5105 GB Notification: Performance of SimCode: time 3.11e-07/0.3631, allocations: 0 / 0.7361 GB, free: 5.312 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02442/0.3876, allocations: 3.81 MB / 0.7398 GB, free: 1.523 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.3878, allocations: 170.8 kB / 0.74 GB, free: 1.336 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.105, allocations: 8.031 kB / 0.74 GB, free: 1.328 MB / 0.5105 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)