Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001681/0.001681, allocations: 110.4 kB / 18.94 MB, free: 2.957 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.002162/0.002162, allocations: 214.7 kB / 22.25 MB, free: 5.133 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.524/1.524, allocations: 230.6 MB / 256 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.325/3.325, allocations: 0.505 GB / 0.8101 GB, free: 22.07 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_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.002137/0.002137, allocations: 67.66 kB / 1.177 GB, free: 17.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4168/0.4189, allocations: 180.2 MB / 1.353 GB, free: 8.441 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003439/0.4224, allocations: 1.466 MB / 1.354 GB, free: 6.969 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0009557/0.4233, allocations: 390.7 kB / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.522e-05/0.4234, allocations: 0 / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.557e-05/0.4234, allocations: 7.938 kB / 1.355 GB, free: 6.578 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 6.088e-05/0.4235, allocations: 3.938 kB / 1.355 GB, free: 6.574 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007263/0.4242, allocations: 112 kB / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001309/0.4243, allocations: 27.92 kB / 1.355 GB, free: 6.438 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001279/0.4245, allocations: 3.938 kB / 1.355 GB, free: 6.434 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 5.941e-05/0.4245, allocations: 15.92 kB / 1.355 GB, free: 6.418 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.912e-05/0.4246, allocations: 11.94 kB / 1.355 GB, free: 6.406 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.639e-05/0.4246, allocations: 4 kB / 1.355 GB, free: 6.402 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004453/0.425, allocations: 283.6 kB / 1.355 GB, free: 6.125 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 1.383e-05/0.425, allocations: 0 / 1.355 GB, free: 6.125 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 3.591e-05/0.4251, allocations: 15.94 kB / 1.355 GB, free: 6.109 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.4253, allocations: 107.7 kB / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.4253, allocations: 0 / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4253, allocations: 0 / 1.355 GB, free: 6.004 MB / 1.045 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.4253, allocations: 0 / 1.355 GB, free: 6.004 MB / 1.045 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.000555/0.4259, allocations: 294 kB / 1.356 GB, free: 5.684 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.4259, allocations: 8.031 kB / 1.356 GB, free: 5.676 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.911e-05/0.426, allocations: 38.75 kB / 1.356 GB, free: 5.629 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.426, allocations: 4.875 kB / 1.356 GB, free: 5.625 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.4262, allocations: 106.5 kB / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.4262, allocations: 384 / 1.356 GB, free: 5.496 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.461e-05/0.4262, allocations: 4.359 kB / 1.356 GB, free: 5.492 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.4264, allocations: 50.23 kB / 1.356 GB, free: 5.438 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.4265, allocations: 3.938 kB / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.4265, allocations: 0 / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.4265, allocations: 0 / 1.356 GB, free: 5.434 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001701/0.4266, allocations: 47.89 kB / 1.356 GB, free: 5.387 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003921/0.427, allocations: 227.9 kB / 1.356 GB, free: 5.121 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.4272, allocations: 42.48 kB / 1.356 GB, free: 5.07 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.352e-05/0.4273, allocations: 24.91 kB / 1.356 GB, free: 5.043 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000651/0.4279, allocations: 71.92 kB / 1.356 GB, free: 4.973 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.428, allocations: 34.56 kB / 1.356 GB, free: 4.93 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.273e-06/0.428, allocations: 4 kB / 1.356 GB, free: 4.926 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.000385/0.4283, allocations: 81.58 kB / 1.356 GB, free: 4.84 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/0.4284, allocations: 55.41 kB / 1.356 GB, free: 4.773 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.545e-05/0.4285, allocations: 109.8 kB / 1.356 GB, free: 4.656 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.4285, allocations: 25.7 kB / 1.356 GB, free: 4.625 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 6.038e-05/0.4286, allocations: 88.2 kB / 1.356 GB, free: 4.535 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.4286, allocations: 11.89 kB / 1.357 GB, free: 4.523 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.623e-05/0.4286, allocations: 17.7 kB / 1.357 GB, free: 4.5 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.4288, allocations: 314.8 kB / 1.357 GB, free: 4.184 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.123e-05/0.4288, allocations: 15.98 kB / 1.357 GB, free: 4.168 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-05/0.4289, allocations: 11.98 kB / 1.357 GB, free: 4.156 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.4291, allocations: 48.88 kB / 1.357 GB, free: 4.105 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.4291, allocations: 3.938 kB / 1.357 GB, free: 4.102 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002046/0.4293, allocations: 69.59 kB / 1.357 GB, free: 4.027 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.4293, allocations: 10.03 kB / 1.357 GB, free: 4.02 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.4293, allocations: 3.984 kB / 1.357 GB, free: 4.016 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.4293, allocations: 0 / 1.357 GB, free: 4.016 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.6e-05/0.4294, allocations: 4 kB / 1.357 GB, free: 4.012 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.4294, allocations: 8.031 kB / 1.357 GB, free: 4.004 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.959e-05/0.4295, allocations: 11.94 kB / 1.357 GB, free: 3.992 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-06/0.4295, allocations: 0 / 1.357 GB, free: 3.992 MB / 1.045 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.093e-05/0.4296, allocations: 121.7 kB / 1.357 GB, free: 3.863 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.858e-05/0.4296, allocations: 4 kB / 1.357 GB, free: 3.859 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002306/0.4298, allocations: 73.2 kB / 1.357 GB, free: 3.781 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.4298, allocations: 8.031 kB / 1.357 GB, free: 3.773 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.4298, allocations: 0 / 1.357 GB, free: 3.773 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4298, allocations: 0 / 1.357 GB, free: 3.773 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001732/0.43, allocations: 132.7 kB / 1.357 GB, free: 3.602 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.43, allocations: 3.938 kB / 1.357 GB, free: 3.598 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.75e-05/0.4301, allocations: 11.98 kB / 1.357 GB, free: 3.586 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.4301, allocations: 0 / 1.357 GB, free: 3.586 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.4301, allocations: 0 / 1.357 GB, free: 3.586 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4301, allocations: 0 / 1.357 GB, free: 3.586 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4301, allocations: 0 / 1.357 GB, free: 3.586 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002656/0.4303, allocations: 171.5 kB / 1.358 GB, free: 3.402 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.433e-05/0.4304, allocations: 3.953 kB / 1.358 GB, free: 3.398 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.4304, allocations: 3.984 kB / 1.358 GB, free: 3.395 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.294e-05/0.4305, allocations: 4 kB / 1.358 GB, free: 3.391 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.4305, allocations: 3.984 kB / 1.358 GB, free: 3.387 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.4305, allocations: 4 kB / 1.358 GB, free: 3.383 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.001e-05/0.4306, allocations: 95.5 kB / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.4306, allocations: 0 / 1.358 GB, free: 3.289 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002428/0.4308, allocations: 12 kB / 1.358 GB, free: 3.277 MB / 1.045 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.0006712/0.4315, allocations: 0.7085 MB / 1.358 GB, free: 2.543 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002172/0.4317, allocations: 31.97 kB / 1.358 GB, free: 2.512 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4317, allocations: 3.938 kB / 1.358 GB, free: 2.508 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 8.383e-05/0.4318, allocations: 23.92 kB / 1.358 GB, free: 2.484 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00032/0.4321, allocations: 7.984 kB / 1.358 GB, free: 2.477 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004771/0.4326, allocations: 147.2 kB / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003194/0.4329, allocations: 0.6768 MB / 1.359 GB, free: 1.59 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.413e-05/0.4329, allocations: 4 kB / 1.359 GB, free: 1.586 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.368e-05/0.433, allocations: 7.438 kB / 1.359 GB, free: 1.578 MB / 1.045 GB Notification: Performance of SimCode: time 3.51e-07/0.433, allocations: 0 / 1.359 GB, free: 1.578 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03247/0.4654, allocations: 1.717 MB / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.25, allocations: 12.92 kB / 1.361 GB, free: 15.98 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 18.327107677999265]