Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 192.9 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.252/2.252, allocations: 390.2 MB / 0.6647 GB, free: 488 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001512, allocations: 67.89 kB / 0.8126 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7483/0.7499, allocations: 140.3 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003001/0.7529, allocations: 1.768 MB / 0.9514 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.7544, allocations: 1.107 MB / 0.9525 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.747e-05/0.7545, allocations: 5.188 kB / 0.9525 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003168/0.7548, allocations: 57.67 kB / 0.9526 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002128/0.7551, allocations: 70.52 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005154/0.7556, allocations: 230.3 kB / 0.9529 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.7558, allocations: 138.8 kB / 0.953 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.7559, allocations: 36.09 kB / 0.953 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.005e-05/0.756, allocations: 64.98 kB / 0.9531 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.7561, allocations: 63.59 kB / 0.9532 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.53e-05/0.7562, allocations: 6.75 kB / 0.9532 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.7563, allocations: 67.44 kB / 0.9532 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.516e-05/0.7564, allocations: 42.58 kB / 0.9533 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.349e-05/0.7565, allocations: 55.7 kB / 0.9533 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002573/0.7567, allocations: 203.7 kB / 0.9535 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.7567, allocations: 4 kB / 0.9535 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.203e-06/0.7567, allocations: 1.5 kB / 0.9535 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.7568, allocations: 0 / 0.9535 GB, free: 6.246 MB / 0.7169 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.0005568/0.7573, allocations: 483.5 kB / 0.954 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.7574, allocations: 9.594 kB / 0.954 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.323e-05/0.7574, allocations: 41.36 kB / 0.954 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.078e-05/0.7575, allocations: 16.47 kB / 0.954 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002391/0.7577, allocations: 263.4 kB / 0.9543 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.7577, allocations: 3.281 kB / 0.9543 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.42e-05/0.7577, allocations: 10.88 kB / 0.9543 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/0.7579, allocations: 95.89 kB / 0.9544 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.758, allocations: 0 / 0.9544 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.758, allocations: 5.062 kB / 0.9544 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.758, allocations: 1.188 kB / 0.9544 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001017/0.7581, allocations: 34.16 kB / 0.9544 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004447/0.7586, allocations: 357.1 kB / 0.9548 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.7588, allocations: 85.28 kB / 0.9549 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.965e-05/0.7589, allocations: 31.09 kB / 0.9549 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.7589, allocations: 1.25 kB / 0.9549 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.7591, allocations: 83.91 kB / 0.955 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 2.405e-06/0.7591, allocations: 96 / 0.955 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003373/0.7595, allocations: 147.8 kB / 0.9551 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/0.7595, allocations: 103.8 kB / 0.9552 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.7597, allocations: 274.8 kB / 0.9555 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.351e-05/0.7597, allocations: 25.7 kB / 0.9555 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.583e-05/0.7598, allocations: 111 kB / 0.9556 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.407e-05/0.7598, allocations: 27.05 kB / 0.9556 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.7599, allocations: 30.92 kB / 0.9557 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.394e-05/0.7599, allocations: 324.2 kB / 0.956 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.73e-05/0.76, allocations: 25.39 kB / 0.956 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.262e-05/0.7601, allocations: 70.19 kB / 0.9561 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.7602, allocations: 73.44 kB / 0.9561 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.7603, allocations: 0 / 0.9561 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001965/0.7605, allocations: 120.8 kB / 0.9562 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.7605, allocations: 4.75 kB / 0.9562 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.7605, allocations: 1 kB / 0.9562 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.7605, allocations: 1.438 kB / 0.9562 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.704e-05/0.7606, allocations: 13.2 kB / 0.9563 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.7606, allocations: 1.156 kB / 0.9563 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.041e-05/0.7607, allocations: 15.16 kB / 0.9563 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.7607, allocations: 15.28 kB / 0.9563 GB, free: 3.707 MB / 0.7169 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 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001029/0.7608, allocations: 145.1 kB / 0.9564 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.7608, allocations: 15.06 kB / 0.9564 GB, free: 3.566 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.83e-05/0.7609, allocations: 27.45 kB / 0.9565 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.7609, allocations: 0 / 0.9565 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.7609, allocations: 3.938 kB / 0.9565 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.7609, allocations: 3.938 kB / 0.9565 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.7611, allocations: 217.9 kB / 0.9567 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.7611, allocations: 5.078 kB / 0.9567 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/0.7611, allocations: 8.469 kB / 0.9567 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.7611, allocations: 1.062 kB / 0.9567 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.7611, allocations: 1.188 kB / 0.9567 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.7612, allocations: 0 / 0.9567 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.7612, allocations: 1.094 kB / 0.9567 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002238/0.7614, allocations: 150.5 kB / 0.9568 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.7614, allocations: 91.56 kB / 0.9569 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.7615, allocations: 9.062 kB / 0.9569 GB, free: 3.074 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.204e-05/0.7615, allocations: 14.31 kB / 0.957 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.7e-05/0.7616, allocations: 11.55 kB / 0.957 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.7616, allocations: 3.5 kB / 0.957 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001529/0.7618, allocations: 193 kB / 0.9572 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7618, allocations: 0 / 0.9572 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002477/0.762, allocations: 36.48 kB / 0.9572 GB, free: 2.922 MB / 0.7169 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.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001268/0.7633, allocations: 0.9946 MB / 0.9582 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002258/0.7635, allocations: 77.42 kB / 0.9582 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.7635, allocations: 0 / 0.9582 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.348e-05/0.7636, allocations: 36.61 kB / 0.9583 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.7639, allocations: 44.38 kB / 0.9583 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.7658, allocations: 1.939 MB / 0.9602 GB, free: 0.5781 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.766, allocations: 0.7218 MB / 0.9609 GB, free: 15.86 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.79e-05/0.7661, allocations: 23.56 kB / 0.9609 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.263e-05/0.7662, allocations: 50.05 kB / 0.961 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of SimCode: time 3.2e-07/0.7662, allocations: 4 kB / 0.961 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02132/0.7875, allocations: 4.589 MB / 0.9655 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.958/7.745, allocations: 9.562 kB / 0.9655 GB, free: 13.42 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches