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: 99.75 kB / 18.95 MB, free: 2.832 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.00158/0.00158, allocations: 216 kB / 22.25 MB, free: 5.105 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.543/1.543, 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.344/3.344, allocations: 0.49 GB / 0.7951 GB, free: 35.5 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.002073/0.002073, allocations: 66.61 kB / 1.154 GB, free: 25.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3882/0.3903, allocations: 176.1 MB / 1.326 GB, free: 1.445 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001914/0.3922, allocations: 0.5907 MB / 1.326 GB, free: 0.8594 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0007455/0.393, allocations: 295.3 kB / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.634e-05/0.393, allocations: 0 / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.493e-05/0.393, allocations: 0 / 1.327 GB, free: 0.5703 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 6.492e-06/0.393, allocations: 4 kB / 1.327 GB, free: 0.5664 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.000516/0.3935, allocations: 105.5 kB / 1.327 GB, free: 476 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.169e-05/0.3936, allocations: 0 / 1.327 GB, free: 476 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 5.669e-05/0.3937, allocations: 7.984 kB / 1.327 GB, free: 468 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 1.933e-05/0.3937, allocations: 3.984 kB / 1.327 GB, free: 464 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 2.168e-05/0.3937, allocations: 0 / 1.327 GB, free: 464 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 9.538e-06/0.3937, allocations: 0 / 1.327 GB, free: 464 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004556/0.3942, allocations: 271.7 kB / 1.327 GB, free: 192 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.409e-05/0.3942, allocations: 4 kB / 1.327 GB, free: 188 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 1.524e-05/0.3942, allocations: 3.938 kB / 1.327 GB, free: 184 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000201/0.3944, allocations: 88.02 kB / 1.327 GB, free: 96 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3944, allocations: 3.938 kB / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3944, allocations: 0 / 1.327 GB, free: 92 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.794e-06/0.3944, allocations: 4 kB / 1.327 GB, free: 88 kB / 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.0003563/0.3948, allocations: 262.2 kB / 1.327 GB, free: 15.8 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3948, allocations: 8.031 kB / 1.327 GB, free: 15.79 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.799e-05/0.3948, allocations: 34.69 kB / 1.328 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.123e-05/0.3949, allocations: 4.938 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.647e-05/0.395, allocations: 102.5 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.395, allocations: 4.375 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.395, allocations: 4.359 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.705e-05/0.3951, allocations: 30.27 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3951, allocations: 3.938 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3951, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.3951, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.088e-05/0.3952, allocations: 0 / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000166/0.3953, allocations: 120.8 kB / 1.328 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 5.36e-05/0.3954, allocations: 18.52 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.946e-05/0.3954, allocations: 8.953 kB / 1.328 GB, free: 15.37 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000375/0.3958, allocations: 47.94 kB / 1.328 GB, free: 15.32 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/0.3958, allocations: 38.56 kB / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of pre-optimization done (n=1): time 1.333e-06/0.3958, allocations: 0 / 1.328 GB, free: 15.28 MB / 1.029 GB Notification: Performance of matching and sorting (n=1): time 0.000163/0.396, allocations: 33.64 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.396, allocations: 55.34 kB / 1.328 GB, free: 15.17 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.894e-05/0.3961, allocations: 93.97 kB / 1.328 GB, free: 15.07 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.3961, allocations: 29.7 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 3.85e-05/0.3961, allocations: 84.14 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.149e-05/0.3962, allocations: 3.953 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.3962, allocations: 9.719 kB / 1.328 GB, free: 14.93 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3963, allocations: 314.8 kB / 1.328 GB, free: 14.61 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.798e-06/0.3964, allocations: 4 kB / 1.328 GB, free: 14.61 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.633e-06/0.3964, allocations: 0 / 1.328 GB, free: 14.61 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.843e-05/0.3964, allocations: 12.8 kB / 1.328 GB, free: 14.59 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.3964, allocations: 0 / 1.328 GB, free: 14.59 MB / 1.029 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.286e-05/0.3965, allocations: 41.69 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.3965, allocations: 8 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.3965, allocations: 3.938 kB / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3965, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.112e-05/0.3966, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3966, allocations: 0 / 1.329 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.434e-05/0.3966, allocations: 4 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.3966, allocations: 7.938 kB / 1.329 GB, free: 14.52 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 8.155e-05/0.3967, allocations: 110.4 kB / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.13e-05/0.3967, allocations: 0 / 1.329 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.3968, allocations: 52.64 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.3968, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3968, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.3968, allocations: 0 / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001046/0.3969, allocations: 116.8 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3969, allocations: 0 / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.001e-05/0.3969, allocations: 11.92 kB / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.3969, allocations: 0 / 1.329 GB, free: 14.18 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.397, allocations: 7.938 kB / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.397, allocations: 0 / 1.329 GB, free: 14.17 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.397, allocations: 4.031 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.3971, allocations: 53.14 kB / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-06/0.3971, allocations: 0 / 1.329 GB, free: 14.09 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.619e-05/0.3971, allocations: 11.92 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.014e-06/0.3971, allocations: 0 / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.699e-05/0.3971, allocations: 4 kB / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.3971, allocations: 0 / 1.329 GB, free: 14.08 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.618e-05/0.3971, allocations: 75.28 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3971, allocations: 0 / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000197/0.3973, allocations: 15.94 kB / 1.329 GB, free: 13.99 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.0004879/0.3978, allocations: 0.6085 MB / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 6.708e-05/0.3979, allocations: 0 / 1.33 GB, free: 13.35 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3979, allocations: 4 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 6.191e-06/0.3979, allocations: 3.938 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.398, allocations: 3.938 kB / 1.33 GB, free: 13.34 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003185/0.3984, allocations: 118.5 kB / 1.33 GB, free: 13.18 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.114e-05/0.3984, allocations: 51.36 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.05e-05/0.3984, allocations: 8.156 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.849e-05/0.3985, allocations: 7.438 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of SimCode: time 5.41e-07/0.3985, allocations: 0 / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.4251, allocations: 1.709 MB / 1.331 GB, free: 11.52 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.49, allocations: 2.844 kB / 1.331 GB, free: 11.52 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.483485801989445]