Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_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.005596/0.005596, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001137/0.001137, allocations: 201.3 kB / 16.68 MB, free: 5.969 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.457/1.457, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.722/2.722, allocations: 469.4 MB / 0.7422 GB, free: 7.547 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 64.12 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2862, allocations: 159.1 MB / 1.22 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002832/0.2891, allocations: 1.758 MB / 1.221 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001632/0.2907, allocations: 1.118 MB / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.5e-05/0.2908, allocations: 0 / 1.223 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.2911, allocations: 59.73 kB / 1.223 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.2914, allocations: 75.67 kB / 1.223 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005901/0.292, allocations: 228.5 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002257/0.2922, allocations: 143.6 kB / 1.223 GB, free: 11.2 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001189/0.2923, allocations: 25.11 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001083/0.2924, allocations: 67.75 kB / 1.223 GB, free: 11.11 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.2926, allocations: 63.75 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.2926, allocations: 8 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001556/0.2927, allocations: 71.91 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 8.252e-05/0.2928, allocations: 47.83 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 8.989e-05/0.2929, allocations: 55.61 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002952/0.2932, allocations: 199.2 kB / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.2933, allocations: 0 / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2933, allocations: 0 / 1.224 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.388e-06/0.2933, allocations: 0 / 1.224 GB, free: 10.67 MB / 0.9825 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.0007066/0.294, allocations: 0.4922 MB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.294, allocations: 8.031 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.87e-05/0.2941, allocations: 38.75 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.2941, allocations: 12.84 kB / 1.224 GB, free: 10.06 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.2945, allocations: 260.9 kB / 1.224 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.856e-05/0.2945, allocations: 8.375 kB / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.912e-05/0.2945, allocations: 11.88 kB / 1.224 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002211/0.2948, allocations: 92.17 kB / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2948, allocations: 0 / 1.224 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.2948, allocations: 4 kB / 1.224 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.2948, allocations: 0 / 1.224 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.295, allocations: 43.95 kB / 1.224 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.2955, allocations: 356.7 kB / 1.225 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.2957, allocations: 78.67 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.992e-05/0.2958, allocations: 36.84 kB / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.2958, allocations: 0 / 1.225 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001692/0.296, allocations: 87.36 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.296, allocations: 0 / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.0003511/0.2964, allocations: 141.5 kB / 1.225 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.2964, allocations: 102.8 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.2967, allocations: 270.9 kB / 1.226 GB, free: 8.422 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.2967, allocations: 37.69 kB / 1.226 GB, free: 8.379 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.2968, allocations: 112.1 kB / 1.226 GB, free: 8.266 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.2968, allocations: 23.8 kB / 1.226 GB, free: 8.242 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.602e-05/0.2969, allocations: 25.7 kB / 1.226 GB, free: 8.211 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.297, allocations: 330.8 kB / 1.226 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.319e-05/0.2971, allocations: 27.92 kB / 1.226 GB, free: 7.852 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.2972, allocations: 72.27 kB / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.2973, allocations: 65.7 kB / 1.226 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2974, allocations: 0 / 1.226 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002181/0.2976, allocations: 117.5 kB / 1.226 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.2976, allocations: 4 kB / 1.226 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2976, allocations: 0 / 1.226 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.018e-05/0.2976, allocations: 4 kB / 1.226 GB, free: 7.566 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.186e-05/0.2977, allocations: 16.02 kB / 1.226 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.2977, allocations: 4.188 kB / 1.226 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.573e-05/0.2978, allocations: 11.83 kB / 1.226 GB, free: 7.535 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.2978, allocations: 7.938 kB / 1.226 GB, free: 7.527 MB / 0.9825 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.0001216/0.298, allocations: 147.2 kB / 1.226 GB, free: 7.375 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.298, allocations: 19.91 kB / 1.227 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.298, allocations: 13.41 kB / 1.227 GB, free: 7.336 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.063e-05/0.2981, allocations: 4 kB / 1.227 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.2981, allocations: 4 kB / 1.227 GB, free: 7.328 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.2981, allocations: 7.922 kB / 1.227 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001858/0.2983, allocations: 217.6 kB / 1.227 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2983, allocations: 0 / 1.227 GB, free: 7.059 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.257e-05/0.2983, allocations: 8 kB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.2983, allocations: 0 / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.638e-06/0.2983, allocations: 0 / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2984, allocations: 0 / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2984, allocations: 0 / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002557/0.2986, allocations: 157.2 kB / 1.227 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.01e-05/0.2987, allocations: 100.9 kB / 1.227 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.932e-05/0.2987, allocations: 4 kB / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.512e-05/0.2988, allocations: 0 / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.2988, allocations: 15.92 kB / 1.227 GB, free: 6.742 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.2989, allocations: 4 kB / 1.227 GB, free: 6.738 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001779/0.299, allocations: 192.6 kB / 1.227 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2991, allocations: 0 / 1.227 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000256/0.2993, allocations: 35.92 kB / 1.227 GB, free: 6.516 MB / 0.9825 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.001404/0.3007, allocations: 1.004 MB / 1.228 GB, free: 5.645 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002475/0.301, allocations: 67.95 kB / 1.228 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.301, allocations: 0 / 1.228 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.591e-05/0.3011, allocations: 43.98 kB / 1.228 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.3014, allocations: 48.38 kB / 1.228 GB, free: 5.492 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002204/0.3036, allocations: 1.954 MB / 1.23 GB, free: 3.449 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.304, allocations: 0.7201 MB / 1.231 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.219e-05/0.3041, allocations: 29.38 kB / 1.231 GB, free: 2.676 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.739e-05/0.3042, allocations: 43.42 kB / 1.231 GB, free: 2.633 MB / 0.9825 GB Notification: Performance of SimCode: time 2.51e-07/0.3042, allocations: 0 / 1.231 GB, free: 2.633 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02123/0.3254, allocations: 4.711 MB / 1.236 GB, free: 14.04 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.857/8.182, allocations: 5.5 kB / 1.236 GB, free: 14.04 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches