Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.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.001374/0.001374, 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.002404/0.002404, 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.538/1.538, allocations: 230.6 MB / 252.8 MB, free: 9.129 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.328/3.328, allocations: 0.49 GB / 0.7916 GB, free: 33.54 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.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_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.00214/0.00214, allocations: 77.03 kB / 1.149 GB, free: 26.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3917, allocations: 176.1 MB / 1.321 GB, free: 3.293 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001789/0.3935, allocations: 0.5826 MB / 1.321 GB, free: 2.715 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0008414/0.3943, allocations: 331.2 kB / 1.322 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.989e-05/0.3944, allocations: 0 / 1.322 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.86e-05/0.3944, allocations: 0 / 1.322 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 7.474e-06/0.3944, allocations: 0 / 1.322 GB, free: 2.391 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005386/0.3949, allocations: 109.6 kB / 1.322 GB, free: 2.285 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 4.952e-05/0.395, allocations: 3.938 kB / 1.322 GB, free: 2.281 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.278e-05/0.395, allocations: 8 kB / 1.322 GB, free: 2.273 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.459e-05/0.395, allocations: 0 / 1.322 GB, free: 2.273 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.825e-05/0.3951, allocations: 3.984 kB / 1.322 GB, free: 2.27 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.08e-05/0.3951, allocations: 0 / 1.322 GB, free: 2.27 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004715/0.3956, allocations: 275.6 kB / 1.322 GB, free: 2 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.25e-05/0.3956, allocations: 0 / 1.322 GB, free: 2 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.711e-05/0.3956, allocations: 0 / 1.322 GB, free: 2 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.00022/0.3958, allocations: 91.95 kB / 1.322 GB, free: 1.91 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3958, allocations: 0 / 1.322 GB, free: 1.91 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3958, allocations: 0 / 1.322 GB, free: 1.91 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.112e-06/0.3958, allocations: 0 / 1.322 GB, free: 1.91 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000424/0.3962, allocations: 343.3 kB / 1.323 GB, free: 1.523 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/0.3963, allocations: 11.98 kB / 1.323 GB, free: 1.512 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.645e-05/0.3963, allocations: 30.75 kB / 1.323 GB, free: 1.473 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.618e-05/0.3964, allocations: 0.9375 kB / 1.323 GB, free: 1.473 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/0.3965, allocations: 160.4 kB / 1.323 GB, free: 1.277 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.3966, allocations: 4.375 kB / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.115e-06/0.3966, allocations: 384 / 1.323 GB, free: 1.273 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.3967, allocations: 26.27 kB / 1.323 GB, free: 1.242 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3967, allocations: 7.922 kB / 1.323 GB, free: 1.234 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.3967, allocations: 7.938 kB / 1.323 GB, free: 1.227 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3967, allocations: 0 / 1.323 GB, free: 1.227 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.359e-05/0.3967, allocations: 4 kB / 1.323 GB, free: 1.223 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001803/0.3969, allocations: 145.7 kB / 1.323 GB, free: 1.031 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 5.355e-05/0.397, allocations: 18.61 kB / 1.323 GB, free: 1.004 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.779e-05/0.397, allocations: 4.859 kB / 1.323 GB, free: 0.9961 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006537/0.3977, allocations: 429.6 kB / 1.323 GB, free: 496 kB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.3977, allocations: 34.56 kB / 1.323 GB, free: 452 kB / 1.014 GB Notification: Performance of pre-optimization done (n=1): time 1.182e-06/0.3977, allocations: 0 / 1.323 GB, free: 452 kB / 1.014 GB Notification: Performance of matching and sorting (n=1): time 0.000194/0.3979, allocations: 45.55 kB / 1.323 GB, free: 400 kB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.3979, allocations: 55.41 kB / 1.323 GB, free: 332 kB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.895e-05/0.398, allocations: 93.98 kB / 1.324 GB, free: 228 kB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.398, allocations: 29.7 kB / 1.324 GB, free: 192 kB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 4.102e-05/0.3981, allocations: 80.14 kB / 1.324 GB, free: 108 kB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.3981, allocations: 7.891 kB / 1.324 GB, free: 100 kB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.767e-05/0.3981, allocations: 9.719 kB / 1.324 GB, free: 84 kB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0002036/0.3983, allocations: 318.8 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.258e-05/0.3983, allocations: 0 / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.267e-06/0.3984, allocations: 3.984 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.694e-05/0.3984, allocations: 20.86 kB / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3984, allocations: 0 / 1.324 GB, free: 15.73 MB / 1.029 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.002e-05/0.3985, allocations: 29.7 kB / 1.324 GB, free: 15.7 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.3985, allocations: 8 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3985, allocations: 3.938 kB / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3985, allocations: 0 / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.097e-05/0.3985, allocations: 0 / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.3985, allocations: 0 / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.608e-06/0.3986, allocations: 0 / 1.324 GB, free: 15.69 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-06/0.3986, allocations: 4 kB / 1.324 GB, free: 15.68 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 (1): * Single equations (assignments): 1 * 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 7.943e-05/0.3986, allocations: 113.9 kB / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.3987, allocations: 0 / 1.324 GB, free: 15.56 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.033e-05/0.3988, allocations: 44.7 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3988, allocations: 4 kB / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3988, allocations: 0 / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.3988, allocations: 0 / 1.324 GB, free: 15.51 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.3989, allocations: 149.7 kB / 1.324 GB, free: 15.31 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3989, allocations: 0 / 1.324 GB, free: 15.31 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.332e-05/0.3989, allocations: 8.031 kB / 1.324 GB, free: 15.3 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.3989, allocations: 0 / 1.324 GB, free: 15.3 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.3989, allocations: 3.938 kB / 1.324 GB, free: 15.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3989, allocations: 0 / 1.324 GB, free: 15.3 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3989, allocations: 0 / 1.324 GB, free: 15.3 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.847e-05/0.399, allocations: 61.12 kB / 1.324 GB, free: 15.22 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.88e-05/0.399, allocations: 81.05 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.14e-05/0.399, allocations: 3.938 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.502e-06/0.399, allocations: 4.031 kB / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.018e-05/0.3991, allocations: 0 / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-06/0.3991, allocations: 0 / 1.325 GB, free: 15.12 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.349e-05/0.3991, allocations: 79.28 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3991, allocations: 0 / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0001907/0.3993, allocations: 15.88 kB / 1.325 GB, free: 15.02 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 (1): * Single equations (assignments): 1 * 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.0005086/0.3998, allocations: 0.6085 MB / 1.325 GB, free: 14.38 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 7.927e-05/0.3999, allocations: 11.94 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3999, allocations: 4 kB / 1.325 GB, free: 14.37 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 1.008e-05/0.3999, allocations: 4 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001347/0.4, allocations: 3.938 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003104/0.4003, allocations: 114.4 kB / 1.325 GB, free: 14.21 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.4007, allocations: 0.6769 MB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 1.425e-05/0.4007, allocations: 0 / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.771e-05/0.4007, allocations: 7.438 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of SimCode: time 2.9e-07/0.4007, allocations: 0 / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0264/0.4271, allocations: 1.197 MB / 1.327 GB, free: 12.4 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.939/8.366, allocations: 4.688 kB / 1.327 GB, free: 12.39 MB / 1.029 GB " [Timeout remaining time 292] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Functions.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.384344777092338]