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.754/0.754, allocations: 128.7 MB / 143.7 MB, free: 2.34 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.001143/0.001143, allocations: 181.6 kB / 173.7 MB, free: 6.133 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.757/1.757, allocations: 205.4 MB / 409 MB, free: 10.52 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.0009465/0.0009465, allocations: 88.28 kB / 486.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003124, allocations: 13.91 kB / 0.5604 GB, free: 97.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1546, allocations: 76.77 MB / 0.6354 GB, free: 30.49 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.2968, allocations: 106.6 MB / 0.7395 GB, free: 3.742 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.2971, allocations: 87.95 kB / 0.7396 GB, free: 3.656 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.3084/0.6056, allocations: 5.424 MB / 0.7449 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.134e-06/0.6056, allocations: 3.844 kB / 0.7449 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.765e-05/0.6056, allocations: 4.312 kB / 0.7449 GB, free: 108.1 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.0005898/0.6062, allocations: 0.4893 MB / 0.7454 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.6063, allocations: 11.5 kB / 0.7454 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.786e-05/0.6063, allocations: 37 kB / 0.7454 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.594e-05/0.6064, allocations: 18.77 kB / 0.7454 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.6068, allocations: 260.8 kB / 0.7457 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.6068, allocations: 8.156 kB / 0.7457 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.741e-05/0.6068, allocations: 3.312 kB / 0.7457 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002271/0.607, allocations: 92.91 kB / 0.7458 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.6071, allocations: 1.781 kB / 0.7458 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.441e-05/0.6071, allocations: 3.625 kB / 0.7458 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.6071, allocations: 7.375 kB / 0.7458 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001121/0.6072, allocations: 37.14 kB / 0.7458 GB, free: 107.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000548/0.6078, allocations: 375.8 kB / 0.7462 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.608, allocations: 90.31 kB / 0.7463 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.6081, allocations: 5.719 kB / 0.7463 GB, free: 107 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001842/0.6083, allocations: 89.44 kB / 0.7464 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=8): time 1.914e-06/0.6083, allocations: 0 / 0.7464 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=8): time 0.0004033/0.6087, allocations: 222.8 kB / 0.7466 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.6087, allocations: 102.8 kB / 0.7467 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002486/0.609, allocations: 246.6 kB / 0.7469 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.609, allocations: 34.64 kB / 0.7469 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.73e-05/0.6091, allocations: 116 kB / 0.7471 GB, free: 106.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.774e-05/0.6091, allocations: 18.48 kB / 0.7471 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.843e-06/0.6091, allocations: 3.812 kB / 0.7471 GB, free: 106.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.918e-05/0.6092, allocations: 327.9 kB / 0.7474 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.043e-05/0.6093, allocations: 27.02 kB / 0.7474 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001084/0.6094, allocations: 77.8 kB / 0.7475 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.89e-05/0.6095, allocations: 30.62 kB / 0.7475 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.6095, allocations: 1.062 kB / 0.7475 GB, free: 106.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002113/0.6097, allocations: 119.5 kB / 0.7476 GB, free: 106 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.6098, allocations: 6.906 kB / 0.7476 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.6098, allocations: 3.953 kB / 0.7476 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.6098, allocations: 0 / 0.7476 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.542e-05/0.6099, allocations: 14.47 kB / 0.7477 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.6099, allocations: 10.61 kB / 0.7477 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.427e-05/0.61, allocations: 6.156 kB / 0.7477 GB, free: 106 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.61, allocations: 3.406 kB / 0.7477 GB, free: 106 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 () * 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.0001059/0.6101, allocations: 137.5 kB / 0.7478 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.6102, allocations: 20.06 kB / 0.7478 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002522/0.6104, allocations: 132.6 kB / 0.748 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.6104, allocations: 7.234 kB / 0.748 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.6105, allocations: 4 kB / 0.748 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.6105, allocations: 8.75 kB / 0.748 GB, free: 105.9 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.6107, allocations: 236.7 kB / 0.7482 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.6107, allocations: 0 / 0.7482 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.7e-05/0.6107, allocations: 11.22 kB / 0.7482 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.6107, allocations: 1 kB / 0.7482 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.6108, allocations: 2.656 kB / 0.7482 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.6108, allocations: 1.688 kB / 0.7482 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6108, allocations: 3.953 kB / 0.7482 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002486/0.611, allocations: 149.5 kB / 0.7484 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.862e-05/0.6111, allocations: 101.9 kB / 0.7485 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.6111, allocations: 3.031 kB / 0.7485 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.834e-05/0.6112, allocations: 3.609 kB / 0.7485 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.034e-05/0.6113, allocations: 16.67 kB / 0.7485 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.6113, allocations: 4.344 kB / 0.7485 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001863/0.6115, allocations: 196.6 kB / 0.7487 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.1e-07/0.6115, allocations: 0 / 0.7487 GB, free: 105.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003045/0.6118, allocations: 53.39 kB / 0.7487 GB, free: 105.4 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) * 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.001398/0.6132, allocations: 1.024 MB / 0.7497 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0002582/0.6135, allocations: 84.77 kB / 0.7498 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6135, allocations: 5.5 kB / 0.7498 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 9.891e-05/0.6136, allocations: 40.45 kB / 0.7498 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.6139, allocations: 34.66 kB / 0.7499 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.6154, allocations: 1.128 MB / 0.751 GB, free: 104.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001855/0.6156, allocations: 0.7326 MB / 0.7517 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.954e-05/0.6157, allocations: 24.09 kB / 0.7517 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.076e-05/0.6158, allocations: 47.91 kB / 0.7518 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of SimCode: time 3.6e-07/0.6158, allocations: 1.156 kB / 0.7518 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.6346, allocations: 4.277 MB / 0.7559 GB, free: 103 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002595/0.6349, allocations: 224.2 kB / 0.7562 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/2.349, allocations: 0 / 0.7562 GB, free: 102.8 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)