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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.00149/0.00149, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001787/0.001787, allocations: 193.2 kB / 16.14 MB, free: 6.645 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.367/1.367, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.282/2.282, allocations: 390.2 MB / 0.6643 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001516, allocations: 63.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6781/0.6797, allocations: 140.4 MB / 0.949 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002436/0.6821, allocations: 1.827 MB / 0.9508 GB, free: 7.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001275/0.6834, allocations: 1.098 MB / 0.9519 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.007e-05/0.6835, allocations: 1.344 kB / 0.9519 GB, free: 6.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000246/0.6838, allocations: 54.19 kB / 0.9519 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001601/0.684, allocations: 71.58 kB / 0.952 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.6845, allocations: 194.6 kB / 0.9522 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.6846, allocations: 137 kB / 0.9523 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.346e-05/0.6847, allocations: 27.69 kB / 0.9524 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.264e-05/0.6848, allocations: 55.64 kB / 0.9524 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.277e-05/0.6849, allocations: 67.97 kB / 0.9525 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.954e-05/0.6849, allocations: 3.531 kB / 0.9525 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.685, allocations: 65.33 kB / 0.9525 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.027e-05/0.6851, allocations: 29.97 kB / 0.9526 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.226e-05/0.6852, allocations: 52.48 kB / 0.9526 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.6854, allocations: 195.4 kB / 0.9528 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6854, allocations: 4 kB / 0.9528 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of FrontEnd: time 5.61e-07/0.6854, allocations: 0 / 0.9528 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.6854, allocations: 0 / 0.9528 GB, free: 6.305 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.0004835/0.6859, allocations: 495.3 kB / 0.9533 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.6859, allocations: 9.031 kB / 0.9533 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.532e-05/0.6859, allocations: 40.7 kB / 0.9533 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.686, allocations: 20.5 kB / 0.9533 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.6862, allocations: 256.2 kB / 0.9536 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.6862, allocations: 2.406 kB / 0.9536 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.6862, allocations: 6.781 kB / 0.9536 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001702/0.6864, allocations: 103.8 kB / 0.9537 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.042e-06/0.6864, allocations: 4 kB / 0.9537 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.6864, allocations: 1.312 kB / 0.9537 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.6865, allocations: 2.469 kB / 0.9537 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.73e-05/0.6866, allocations: 29.14 kB / 0.9537 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003654/0.6869, allocations: 352.8 kB / 0.9541 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.6871, allocations: 93.34 kB / 0.9542 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.404e-05/0.6872, allocations: 32.09 kB / 0.9542 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.6872, allocations: 1.156 kB / 0.9542 GB, free: 4.953 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001666/0.6874, allocations: 91.08 kB / 0.9543 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.6874, allocations: 0 / 0.9543 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003023/0.6877, allocations: 132.1 kB / 0.9544 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.6878, allocations: 107.8 kB / 0.9545 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.688, allocations: 276.2 kB / 0.9548 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.688, allocations: 26.89 kB / 0.9548 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.638e-05/0.688, allocations: 117.1 kB / 0.9549 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.6881, allocations: 19.38 kB / 0.9549 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/0.6881, allocations: 31 kB / 0.955 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.052e-05/0.6881, allocations: 327.5 kB / 0.9553 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.609e-05/0.6882, allocations: 33.17 kB / 0.9553 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.204e-05/0.6883, allocations: 69.42 kB / 0.9554 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.6884, allocations: 65.95 kB / 0.9554 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.6884, allocations: 0 / 0.9554 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001872/0.6886, allocations: 112.4 kB / 0.9555 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.202e-05/0.6887, allocations: 8.781 kB / 0.9555 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.6887, allocations: 1.516 kB / 0.9555 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.6887, allocations: 1.406 kB / 0.9555 GB, free: 3.785 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.866e-05/0.6888, allocations: 14.22 kB / 0.9556 GB, free: 3.781 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.6888, allocations: 4.938 kB / 0.9556 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.216e-05/0.6889, allocations: 19.11 kB / 0.9556 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-06/0.6889, allocations: 2.344 kB / 0.9556 GB, free: 3.762 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.692e-05/0.689, allocations: 146.2 kB / 0.9557 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.791e-05/0.689, allocations: 15.84 kB / 0.9557 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.646e-05/0.689, allocations: 27.5 kB / 0.9558 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.689, allocations: 6.625 kB / 0.9558 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.6891, allocations: 48 / 0.9558 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.6891, allocations: 7.922 kB / 0.9558 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001226/0.6892, allocations: 227.2 kB / 0.956 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.6892, allocations: 4 kB / 0.956 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.76e-05/0.6892, allocations: 4.312 kB / 0.956 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.6892, allocations: 1.531 kB / 0.956 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.6893, allocations: 5.453 kB / 0.956 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.6893, allocations: 0 / 0.956 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.6893, allocations: 4 kB / 0.956 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002044/0.6895, allocations: 143.7 kB / 0.9562 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.061e-05/0.6895, allocations: 90.58 kB / 0.9562 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.693e-05/0.6896, allocations: 6.781 kB / 0.9562 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.163e-05/0.6896, allocations: 1.406 kB / 0.9562 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.917e-05/0.6897, allocations: 11.92 kB / 0.9563 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.6897, allocations: 6.953 kB / 0.9563 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001271/0.6898, allocations: 201 kB / 0.9565 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6898, allocations: 0 / 0.9565 GB, free: 2.98 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002253/0.69, allocations: 33.02 kB / 0.9565 GB, free: 2.973 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.001091/0.6911, allocations: 0.9934 MB / 0.9575 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001841/0.6913, allocations: 71.62 kB / 0.9575 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.6913, allocations: 1.125 kB / 0.9575 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.17e-05/0.6914, allocations: 41.22 kB / 0.9576 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002529/0.6917, allocations: 34.39 kB / 0.9576 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.6933, allocations: 1.968 MB / 0.9595 GB, free: 0.5977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.6935, allocations: 0.7226 MB / 0.9602 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.652e-05/0.6936, allocations: 23.12 kB / 0.9602 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.52e-05/0.6936, allocations: 45.05 kB / 0.9603 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.6936, allocations: 1.375 kB / 0.9603 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8598/1.553, allocations: 4.4 MB / 0.9646 GB, free: 13.62 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003005/1.554, allocations: 239.8 kB / 0.9648 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.243/3.796, allocations: 0 / 0.9648 GB, free: 13.37 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