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.001216/0.001216, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 192.2 kB / 16.25 MB, free: 6.633 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.238/1.238, allocations: 222.9 MB / 239.9 MB, free: 4.457 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.102/2.102, allocations: 390.2 MB / 0.6644 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 67.91 kB / 0.8122 GB, free: 14.7 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5715/0.5727, allocations: 140.4 MB / 0.9492 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002594/0.5753, allocations: 1.825 MB / 0.951 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001356/0.5767, allocations: 1.098 MB / 0.9521 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.547e-05/0.5768, allocations: 1.062 kB / 0.9521 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002473/0.577, allocations: 53.88 kB / 0.9521 GB, free: 6.895 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.5772, allocations: 66.39 kB / 0.9522 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005374/0.5778, allocations: 200.4 kB / 0.9524 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001658/0.578, allocations: 149.8 kB / 0.9525 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.227e-05/0.5781, allocations: 28.19 kB / 0.9526 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.954e-05/0.5781, allocations: 70.38 kB / 0.9526 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.062e-05/0.5782, allocations: 63.84 kB / 0.9527 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.5783, allocations: 6.469 kB / 0.9527 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001323/0.5784, allocations: 63.88 kB / 0.9528 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.068e-05/0.5785, allocations: 46.52 kB / 0.9528 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.198e-05/0.5785, allocations: 60.92 kB / 0.9529 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002262/0.5788, allocations: 200.2 kB / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.5788, allocations: 0 / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.12e-07/0.5788, allocations: 0 / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.5788, allocations: 1.219 kB / 0.953 GB, free: 6.316 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.0004606/0.5793, allocations: 484.1 kB / 0.9535 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.5793, allocations: 9.25 kB / 0.9535 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.613e-05/0.5793, allocations: 37.09 kB / 0.9536 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.447e-05/0.5794, allocations: 16.5 kB / 0.9536 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.5796, allocations: 267.5 kB / 0.9538 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.5796, allocations: 2.531 kB / 0.9538 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.5796, allocations: 7.188 kB / 0.9538 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.5798, allocations: 96.23 kB / 0.9539 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.5798, allocations: 0 / 0.9539 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.5798, allocations: 3.938 kB / 0.9539 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.5798, allocations: 3.406 kB / 0.9539 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.048e-05/0.5799, allocations: 36.75 kB / 0.954 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003652/0.5803, allocations: 345.3 kB / 0.9543 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001884/0.5805, allocations: 92.59 kB / 0.9544 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.295e-05/0.5806, allocations: 35.86 kB / 0.9544 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.5806, allocations: 5.188 kB / 0.9544 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.5808, allocations: 80.44 kB / 0.9545 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.482e-06/0.5808, allocations: 0 / 0.9545 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003009/0.5811, allocations: 138.8 kB / 0.9546 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.599e-05/0.5811, allocations: 104.2 kB / 0.9547 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.5813, allocations: 272.6 kB / 0.955 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.31e-05/0.5813, allocations: 27.11 kB / 0.955 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.622e-05/0.5814, allocations: 120.3 kB / 0.9551 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.078e-05/0.5814, allocations: 26.59 kB / 0.9552 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.799e-05/0.5815, allocations: 23.19 kB / 0.9552 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.65e-05/0.5815, allocations: 332.2 kB / 0.9555 GB, free: 4 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.256e-05/0.5816, allocations: 24.98 kB / 0.9555 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.77e-05/0.5817, allocations: 69.94 kB / 0.9556 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.5818, allocations: 72.53 kB / 0.9557 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.5818, allocations: 1.062 kB / 0.9557 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001809/0.582, allocations: 108.4 kB / 0.9558 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.582, allocations: 5.594 kB / 0.9558 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.582, allocations: 0 / 0.9558 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.582, allocations: 1.156 kB / 0.9558 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.163e-05/0.5821, allocations: 26.67 kB / 0.9558 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.5821, allocations: 1.562 kB / 0.9558 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.908e-05/0.5822, allocations: 14.66 kB / 0.9558 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.5822, allocations: 2.344 kB / 0.9558 GB, free: 3.789 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 8.26e-05/0.5823, allocations: 150.2 kB / 0.956 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.46e-05/0.5823, allocations: 14.62 kB / 0.956 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.362e-05/0.5824, allocations: 26.27 kB / 0.956 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.5824, allocations: 0 / 0.956 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.5824, allocations: 2.156 kB / 0.956 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.5824, allocations: 3.938 kB / 0.956 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.5825, allocations: 226.4 kB / 0.9562 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5825, allocations: 0 / 0.9562 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-05/0.5826, allocations: 15.48 kB / 0.9562 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.5826, allocations: 0 / 0.9562 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.5826, allocations: 0 / 0.9562 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.5826, allocations: 0 / 0.9562 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5826, allocations: 48 / 0.9562 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001939/0.5828, allocations: 147.7 kB / 0.9564 GB, free: 3.262 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.037e-05/0.5828, allocations: 94.61 kB / 0.9565 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.5829, allocations: 5.125 kB / 0.9565 GB, free: 3.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.182e-05/0.5829, allocations: 6.234 kB / 0.9565 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.617e-05/0.583, allocations: 16.58 kB / 0.9565 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.583, allocations: 6.469 kB / 0.9565 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001288/0.5831, allocations: 196.2 kB / 0.9567 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5831, allocations: 0 / 0.9567 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002324/0.5833, allocations: 36.39 kB / 0.9567 GB, free: 2.996 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.001095/0.5844, allocations: 0.9945 MB / 0.9577 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001871/0.5846, allocations: 73.17 kB / 0.9578 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.5847, allocations: 0 / 0.9578 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.415e-05/0.5847, allocations: 33.61 kB / 0.9578 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.585, allocations: 54.44 kB / 0.9578 GB, free: 2.176 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001608/0.5866, allocations: 1.963 MB / 0.9598 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.5868, allocations: 0.7181 MB / 0.9605 GB, free: 15.9 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.247e-05/0.5869, allocations: 24.28 kB / 0.9605 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.657e-05/0.5869, allocations: 54.06 kB / 0.9605 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.5869, allocations: 0 / 0.9605 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01346/0.6004, allocations: 4.49 MB / 0.9649 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.6006, allocations: 243.9 kB / 0.9651 GB, free: 13.33 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.846/2.447, allocations: 4 kB / 0.9652 GB, free: 13.32 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