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.002198/0.002198, allocations: 103 kB / 16.45 MB, free: 6.449 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.002456/0.002456, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.576/1.576, allocations: 230.6 MB / 252.8 MB, free: 9.145 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.451/3.451, allocations: 0.505 GB / 0.8066 GB, free: 23.12 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.002313/0.002313, allocations: 70.17 kB / 1.172 GB, free: 17.48 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4425/0.4448, allocations: 180.2 MB / 1.348 GB, free: 10.02 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003606/0.4484, allocations: 1.463 MB / 1.349 GB, free: 8.551 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0008846/0.4493, allocations: 387.1 kB / 1.35 GB, free: 8.172 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.37e-05/0.4494, allocations: 0 / 1.35 GB, free: 8.172 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 3.433e-05/0.4494, allocations: 0 / 1.35 GB, free: 8.172 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 5.533e-05/0.4495, allocations: 3.938 kB / 1.35 GB, free: 8.168 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006476/0.4501, allocations: 125.8 kB / 1.35 GB, free: 8.047 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 9.511e-05/0.4502, allocations: 23.92 kB / 1.35 GB, free: 8.023 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.4503, allocations: 8.266 kB / 1.35 GB, free: 8.016 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.099e-05/0.4504, allocations: 11.94 kB / 1.35 GB, free: 8.004 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 4.982e-05/0.4504, allocations: 11.92 kB / 1.35 GB, free: 7.992 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.464e-05/0.4504, allocations: 4 kB / 1.35 GB, free: 7.988 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000564/0.451, allocations: 271.6 kB / 1.35 GB, free: 7.723 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 3.159e-05/0.451, allocations: 7.984 kB / 1.35 GB, free: 7.715 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.35e-05/0.4511, allocations: 15.94 kB / 1.35 GB, free: 7.699 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.4515, allocations: 111.6 kB / 1.35 GB, free: 7.59 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 8.926e-06/0.4515, allocations: 0 / 1.35 GB, free: 7.59 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.246e-06/0.4515, allocations: 0 / 1.35 GB, free: 7.59 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.244e-05/0.4515, allocations: 0 / 1.35 GB, free: 7.59 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.0009474/0.4525, allocations: 368.8 kB / 1.35 GB, free: 7.18 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 9.431e-05/0.4526, allocations: 15.98 kB / 1.35 GB, free: 7.164 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.641e-05/0.4526, allocations: 30.75 kB / 1.351 GB, free: 7.125 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.4528, allocations: 8.875 kB / 1.351 GB, free: 7.117 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.4531, allocations: 168.4 kB / 1.351 GB, free: 6.914 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.4531, allocations: 4.375 kB / 1.351 GB, free: 6.91 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.4531, allocations: 384 / 1.351 GB, free: 6.91 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.4534, allocations: 50.23 kB / 1.351 GB, free: 6.855 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.4534, allocations: 7.875 kB / 1.351 GB, free: 6.848 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.4534, allocations: 0 / 1.351 GB, free: 6.848 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.4534, allocations: 7.938 kB / 1.351 GB, free: 6.84 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.4536, allocations: 31.91 kB / 1.351 GB, free: 6.809 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006761/0.4543, allocations: 260.9 kB / 1.351 GB, free: 6.504 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002219/0.4545, allocations: 42.48 kB / 1.351 GB, free: 6.453 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.4547, allocations: 20.91 kB / 1.351 GB, free: 6.43 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009837/0.4556, allocations: 457.5 kB / 1.352 GB, free: 5.891 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.4557, allocations: 38.55 kB / 1.352 GB, free: 5.844 MB / 1.045 GB Notification: Performance of pre-optimization done (n=2): time 1.392e-06/0.4557, allocations: 0 / 1.352 GB, free: 5.844 MB / 1.045 GB Notification: Performance of matching and sorting (n=2): time 0.0005694/0.4563, allocations: 81.59 kB / 1.352 GB, free: 5.758 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.775e-05/0.4563, allocations: 63.39 kB / 1.352 GB, free: 5.684 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.4565, allocations: 101.9 kB / 1.352 GB, free: 5.574 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.4565, allocations: 25.7 kB / 1.352 GB, free: 5.543 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.789e-05/0.4566, allocations: 80.14 kB / 1.352 GB, free: 5.461 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 4.372e-05/0.4566, allocations: 11.88 kB / 1.352 GB, free: 5.449 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.543e-05/0.4567, allocations: 21.72 kB / 1.352 GB, free: 5.422 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001948/0.4569, allocations: 315 kB / 1.352 GB, free: 5.105 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.848e-05/0.457, allocations: 15.98 kB / 1.352 GB, free: 5.09 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.978e-05/0.4571, allocations: 19.97 kB / 1.352 GB, free: 5.07 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001825/0.4572, allocations: 40.83 kB / 1.352 GB, free: 5.027 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.4572, allocations: 4.188 kB / 1.352 GB, free: 5.023 MB / 1.045 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002872/0.4575, allocations: 73.66 kB / 1.352 GB, free: 4.945 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.4576, allocations: 4 kB / 1.352 GB, free: 4.941 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.4576, allocations: 4 kB / 1.352 GB, free: 4.938 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.909e-05/0.4576, allocations: 0 / 1.352 GB, free: 4.938 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.4577, allocations: 11.98 kB / 1.352 GB, free: 4.926 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.4577, allocations: 0 / 1.352 GB, free: 4.926 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.114e-05/0.4578, allocations: 4 kB / 1.352 GB, free: 4.922 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.522e-06/0.4578, allocations: 0 / 1.352 GB, free: 4.922 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 0.0001138/0.4579, allocations: 121.8 kB / 1.353 GB, free: 4.793 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.01e-05/0.458, allocations: 7.938 kB / 1.353 GB, free: 4.785 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003081/0.4583, allocations: 73.12 kB / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.4583, allocations: 0 / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.4583, allocations: 0 / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4583, allocations: 0 / 1.353 GB, free: 4.699 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002367/0.4586, allocations: 173.5 kB / 1.353 GB, free: 4.48 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4586, allocations: 4.031 kB / 1.353 GB, free: 4.477 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.837e-05/0.4586, allocations: 4 kB / 1.353 GB, free: 4.473 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.4586, allocations: 0 / 1.353 GB, free: 4.473 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.4586, allocations: 0 / 1.353 GB, free: 4.473 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.4586, allocations: 4 kB / 1.353 GB, free: 4.469 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.4586, allocations: 7.922 kB / 1.353 GB, free: 4.461 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000361/0.459, allocations: 163.5 kB / 1.353 GB, free: 4.285 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 6.067e-05/0.4591, allocations: 92.97 kB / 1.353 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.4591, allocations: 0 / 1.353 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.45e-05/0.4591, allocations: 4 kB / 1.353 GB, free: 4.172 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.729e-05/0.4592, allocations: 7.984 kB / 1.353 GB, free: 4.164 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.4592, allocations: 0 / 1.353 GB, free: 4.164 MB / 1.045 GB Notification: Performance of sorting global known variables: time 7.136e-05/0.4593, allocations: 83.28 kB / 1.353 GB, free: 4.082 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4593, allocations: 0 / 1.353 GB, free: 4.082 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002593/0.4595, allocations: 12 kB / 1.353 GB, free: 4.07 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.000887/0.4604, allocations: 0.7124 MB / 1.354 GB, free: 3.332 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002565/0.4607, allocations: 39.94 kB / 1.354 GB, free: 3.293 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4607, allocations: 0 / 1.354 GB, free: 3.293 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.4608, allocations: 23.97 kB / 1.354 GB, free: 3.27 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003363/0.4611, allocations: 0 / 1.354 GB, free: 3.27 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006106/0.4617, allocations: 146.9 kB / 1.354 GB, free: 3.086 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.4621, allocations: 0.6807 MB / 1.355 GB, free: 2.379 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 2.873e-05/0.4621, allocations: 4.125 kB / 1.355 GB, free: 2.375 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.819e-05/0.4622, allocations: 7.438 kB / 1.355 GB, free: 2.367 MB / 1.045 GB Notification: Performance of SimCode: time 3.61e-07/0.4622, allocations: 0 / 1.355 GB, free: 2.367 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.4913, allocations: 1.616 MB / 1.356 GB, free: 0.8398 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.212/8.703, allocations: 14.45 kB / 1.356 GB, free: 0.832 MB / 1.045 GB " [Timeout remaining time 291] (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: 15.878061781870201]