Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002476/0.002476, allocations: 214.9 kB / 22.25 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.518/1.518, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.437/3.437, allocations: 0.4892 GB / 0.7943 GB, free: 35.44 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 63.56 kB / 1.153 GB, free: 25.78 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4338/0.4359, allocations: 176.1 MB / 1.325 GB, free: 2.352 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00324/0.4391, allocations: 1.467 MB / 1.327 GB, free: 0.8789 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008641/0.44, allocations: 358.8 kB / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.64e-05/0.44, allocations: 0 / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.347e-05/0.4401, allocations: 0 / 1.327 GB, free: 0.5273 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.89e-05/0.4401, allocations: 3.938 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005246/0.4407, allocations: 113.1 kB / 1.327 GB, free: 424 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 9.533e-05/0.4407, allocations: 27.92 kB / 1.327 GB, free: 396 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.4409, allocations: 11.92 kB / 1.327 GB, free: 384 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.76e-05/0.4409, allocations: 11.94 kB / 1.327 GB, free: 372 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 4.739e-05/0.4409, allocations: 15.92 kB / 1.327 GB, free: 356 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.473e-05/0.441, allocations: 4 kB / 1.327 GB, free: 352 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004287/0.4414, allocations: 251.7 kB / 1.327 GB, free: 100 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.4414, allocations: 7.984 kB / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 2.67e-05/0.4414, allocations: 15.92 kB / 1.327 GB, free: 76 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002554/0.4417, allocations: 99.72 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.4417, allocations: 0 / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.214e-06/0.4417, allocations: 0 / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.4417, allocations: 4 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00056/0.4423, allocations: 294 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.775e-05/0.4423, allocations: 12.03 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.378e-05/0.4424, allocations: 30.75 kB / 1.328 GB, free: 15.6 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.911e-05/0.4424, allocations: 8.891 kB / 1.328 GB, free: 15.59 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.4426, allocations: 102.5 kB / 1.328 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.4426, allocations: 4.375 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.4426, allocations: 4.375 kB / 1.328 GB, free: 15.46 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001897/0.4428, allocations: 50.23 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.4428, allocations: 3.938 kB / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.4428, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.4428, allocations: 0 / 1.328 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.443, allocations: 47.88 kB / 1.328 GB, free: 15.36 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000391/0.4434, allocations: 220 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.4435, allocations: 38.5 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.798e-05/0.4436, allocations: 20.91 kB / 1.328 GB, free: 15.03 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00053/0.4441, allocations: 83.91 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.4442, allocations: 34.56 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.944e-06/0.4442, allocations: 0 / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0004119/0.4446, allocations: 89.62 kB / 1.328 GB, free: 14.81 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.181e-05/0.4446, allocations: 55.41 kB / 1.328 GB, free: 14.74 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.618e-05/0.4447, allocations: 105.8 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.4448, allocations: 29.7 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.432e-05/0.4448, allocations: 80.14 kB / 1.329 GB, free: 14.51 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.4448, allocations: 11.83 kB / 1.329 GB, free: 14.5 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.977e-05/0.4449, allocations: 21.66 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001612/0.445, allocations: 310.8 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.536e-05/0.4451, allocations: 23.97 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.208e-05/0.4452, allocations: 16.02 kB / 1.329 GB, free: 14.12 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.4453, allocations: 36.83 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4454, allocations: 3.938 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002209/0.4456, allocations: 73.59 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.4456, allocations: 4 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.4456, allocations: 96 / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.4456, allocations: 8.25 kB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.465e-05/0.4457, allocations: 7.984 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.4457, allocations: 4 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.785e-05/0.4458, allocations: 7.984 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.119e-06/0.4458, allocations: 0 / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * 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 9.033e-05/0.4459, allocations: 114.3 kB / 1.329 GB, free: 13.85 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.591e-05/0.4459, allocations: 7.953 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002437/0.4462, allocations: 77.22 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.4462, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.4462, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.4462, allocations: 4 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001788/0.4463, allocations: 128.7 kB / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.4463, allocations: 0 / 1.329 GB, free: 13.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.754e-05/0.4464, allocations: 11.98 kB / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.4464, allocations: 0 / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.4464, allocations: 0 / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4464, allocations: 0 / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4464, allocations: 4.031 kB / 1.329 GB, free: 13.56 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002629/0.4467, allocations: 167.5 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.963e-06/0.4467, allocations: 3.938 kB / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.4467, allocations: 0 / 1.33 GB, free: 13.38 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.1e-05/0.4468, allocations: 11.98 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.049e-05/0.4468, allocations: 0 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.4468, allocations: 4 kB / 1.33 GB, free: 13.36 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.297e-05/0.4469, allocations: 83.27 kB / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of sort global known variables: time 5e-08/0.4469, allocations: 32 / 1.33 GB, free: 13.28 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002335/0.4471, allocations: 23.94 kB / 1.33 GB, free: 13.26 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0007582/0.4479, allocations: 0.7045 MB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002238/0.4481, allocations: 43.89 kB / 1.33 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.4481, allocations: 0 / 1.33 GB, free: 12.48 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.874e-05/0.4482, allocations: 24.08 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.4485, allocations: 3.938 kB / 1.331 GB, free: 12.46 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005111/0.449, allocations: 151 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.458e-05/0.4491, allocations: 59.34 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.704e-05/0.4491, allocations: 4 kB / 1.331 GB, free: 12.19 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/0.4492, allocations: 11.44 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/0.4492, allocations: 0 / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.4861, allocations: 2.145 MB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.83, allocations: 4.672 kB / 1.333 GB, free: 10.16 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.170302795711905]