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.7349/0.7349, allocations: 127.3 MB / 139.8 MB, free: 15.46 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 176.9 kB / 169.7 MB, free: 1.734 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.891/1.891, allocations: 205.1 MB / 404.5 MB, free: 1.656 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.000889/0.0008893, allocations: 95.67 kB / 481.8 MB, free: 4.305 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 4.094e-05/4.103e-05, allocations: 4 kB / 0.5533 GB, free: 54.76 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.164, allocations: 76.75 MB / 0.6282 GB, free: 9.941 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5734/0.7375, allocations: 106.5 MB / 0.7323 GB, free: 6.875 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.7378, allocations: 82.08 kB / 0.7323 GB, free: 6.832 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01519/0.753, allocations: 5.4 MB / 0.7376 GB, free: 2.293 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.753, allocations: 0 / 0.7376 GB, free: 2.293 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.7531, allocations: 4 kB / 0.7376 GB, free: 2.289 MB / 490.7 MB 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.0005863/0.7537, allocations: 479.8 kB / 0.7381 GB, free: 1.781 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.7537, allocations: 8.031 kB / 0.7381 GB, free: 1.773 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.628e-05/0.7538, allocations: 36.75 kB / 0.7381 GB, free: 1.73 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.422e-05/0.7538, allocations: 23.77 kB / 0.7381 GB, free: 1.707 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003951/0.7542, allocations: 262.9 kB / 0.7384 GB, free: 1.426 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.7543, allocations: 4 kB / 0.7384 GB, free: 1.422 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.656e-05/0.7543, allocations: 3.812 kB / 0.7384 GB, free: 1.422 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.7545, allocations: 97.61 kB / 0.7385 GB, free: 1.324 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.7545, allocations: 4 kB / 0.7385 GB, free: 1.32 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.7545, allocations: 0 / 0.7385 GB, free: 1.32 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.7545, allocations: 0 / 0.7385 GB, free: 1.32 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.121e-05/0.7546, allocations: 38.69 kB / 0.7385 GB, free: 1.293 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000567/0.7552, allocations: 369.4 kB / 0.7389 GB, free: 0.9258 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001488/0.7554, allocations: 83.62 kB / 0.739 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.276e-05/0.7554, allocations: 33.66 kB / 0.739 GB, free: 0.8281 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.7555, allocations: 0 / 0.739 GB, free: 0.8281 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/0.7556, allocations: 85.84 kB / 0.7391 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.7556, allocations: 3.938 kB / 0.7391 GB, free: 0.7383 MB / 490.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002553/0.7559, allocations: 112.8 kB / 0.7392 GB, free: 0.6406 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.394e-05/0.756, allocations: 102.8 kB / 0.7393 GB, free: 0.5156 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002624/0.7562, allocations: 243.5 kB / 0.7395 GB, free: 320 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.7563, allocations: 29.7 kB / 0.7396 GB, free: 284 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.7563, allocations: 120.6 kB / 0.7397 GB, free: 184 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.837e-05/0.7564, allocations: 18.67 kB / 0.7397 GB, free: 168 kB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.7564, allocations: 0 / 0.7397 GB, free: 168 kB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.7565, allocations: 325.6 kB / 0.74 GB, free: 15.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.491e-05/0.7566, allocations: 23.25 kB / 0.74 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.649e-05/0.7567, allocations: 83.52 kB / 0.7401 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.856e-05/0.7568, allocations: 30.97 kB / 0.7401 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.7568, allocations: 192 / 0.7401 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001833/0.757, allocations: 112.4 kB / 0.7402 GB, free: 15.62 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.757, allocations: 15.89 kB / 0.7402 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.757, allocations: 0 / 0.7402 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.757, allocations: 0 / 0.7402 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.7571, allocations: 15.98 kB / 0.7403 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.7572, allocations: 4.031 kB / 0.7403 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.772e-05/0.7572, allocations: 7.562 kB / 0.7403 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.7572, allocations: 4 kB / 0.7403 GB, free: 15.58 MB / 0.4948 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 8.377e-05/0.7573, allocations: 113.4 kB / 0.7404 GB, free: 15.47 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.994e-05/0.7574, allocations: 19.84 kB / 0.7404 GB, free: 15.45 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002382/0.7576, allocations: 134 kB / 0.7405 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.195e-06/0.7576, allocations: 0 / 0.7405 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.7576, allocations: 4 kB / 0.7405 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.7577, allocations: 4 kB / 0.7405 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002089/0.7579, allocations: 227 kB / 0.7408 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.7579, allocations: 3.938 kB / 0.7408 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.681e-05/0.7579, allocations: 11.98 kB / 0.7408 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.7579, allocations: 0 / 0.7408 GB, free: 15.06 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.758, allocations: 6.875 kB / 0.7408 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.663e-06/0.758, allocations: 7.953 kB / 0.7408 GB, free: 15.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.758, allocations: 3.938 kB / 0.7408 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.7582, allocations: 141.5 kB / 0.7409 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 7.73e-05/0.7583, allocations: 100.6 kB / 0.741 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.7583, allocations: 4 kB / 0.741 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.081e-05/0.7584, allocations: 7.125 kB / 0.741 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.98e-05/0.7584, allocations: 11.94 kB / 0.741 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.7585, allocations: 0 / 0.741 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001899/0.7587, allocations: 194.5 kB / 0.7412 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7587, allocations: 3.938 kB / 0.7412 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002653/0.7589, allocations: 58.77 kB / 0.7413 GB, free: 14.56 MB / 0.4948 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.001392/0.7603, allocations: 0.9768 MB / 0.7422 GB, free: 13.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0002039/0.7606, allocations: 82.45 kB / 0.7423 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.7606, allocations: 0 / 0.7423 GB, free: 13.64 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 6.772e-05/0.7606, allocations: 35.53 kB / 0.7424 GB, free: 13.61 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000259/0.7609, allocations: 45.77 kB / 0.7424 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006119/0.7615, allocations: 292.9 kB / 0.7427 GB, free: 13.29 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.7619, allocations: 0.731 MB / 0.7434 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 7.799e-05/0.7619, allocations: 25.2 kB / 0.7434 GB, free: 12.51 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.358e-05/0.762, allocations: 44.67 kB / 0.7435 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of SimCode: time 2.053e-06/0.762, allocations: 4 kB / 0.7435 GB, free: 12.49 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0166/0.7786, allocations: 4.233 MB / 0.7476 GB, free: 8.352 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/0.7789, allocations: 195.7 kB / 0.7478 GB, free: 8.129 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.611/2.39, allocations: 7.938 kB / 0.7478 GB, free: 8.121 MB / 0.4948 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)