Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001975/0.001975, allocations: 107.6 kB / 18.95 MB, free: 2.809 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.002302/0.002302, allocations: 211.4 kB / 22.24 MB, free: 5.113 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.645/1.645, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.899/2.899, allocations: 476 MB / 0.7699 GB, free: 4.715 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_11_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.00218/0.00218, allocations: 70.2 kB / 1.117 GB, free: 41.16 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3574, allocations: 170 MB / 1.283 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002762/0.3602, allocations: 1.464 MB / 1.284 GB, free: 10.9 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0007579/0.3609, allocations: 342.9 kB / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.766e-05/0.361, allocations: 0 / 1.284 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.677e-05/0.361, allocations: 3.938 kB / 1.284 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.886e-05/0.361, allocations: 11.92 kB / 1.284 GB, free: 10.55 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.3615, allocations: 118 kB / 1.284 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.076e-05/0.3616, allocations: 31.92 kB / 1.284 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.3617, allocations: 8 kB / 1.284 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.705e-05/0.3617, allocations: 15.92 kB / 1.284 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 3.699e-05/0.3617, allocations: 7.984 kB / 1.285 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.3617, allocations: 4 kB / 1.285 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004185/0.3622, allocations: 251.7 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2e-05/0.3622, allocations: 7.938 kB / 1.285 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.218e-05/0.3622, allocations: 11.94 kB / 1.285 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002168/0.3624, allocations: 105.4 kB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.3624, allocations: 7.938 kB / 1.285 GB, free: 9.996 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3624, allocations: 4 kB / 1.285 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 9.858e-06/0.3624, allocations: 0 / 1.285 GB, free: 9.992 MB / 0.9825 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.0005338/0.363, allocations: 292.1 kB / 1.285 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.363, allocations: 11.97 kB / 1.285 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.526e-05/0.3631, allocations: 34.75 kB / 1.285 GB, free: 9.621 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.274e-05/0.3631, allocations: 4.938 kB / 1.285 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.3632, allocations: 118.4 kB / 1.285 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.155e-05/0.3633, allocations: 384 / 1.285 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.3633, allocations: 384 / 1.285 GB, free: 9.477 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.3635, allocations: 50.23 kB / 1.285 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.3635, allocations: 7.938 kB / 1.285 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.3635, allocations: 0 / 1.285 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.075e-06/0.3635, allocations: 0 / 1.285 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001719/0.3637, allocations: 35.95 kB / 1.285 GB, free: 9.379 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003491/0.364, allocations: 212 kB / 1.286 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.3642, allocations: 46.47 kB / 1.286 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.188e-05/0.3643, allocations: 24.91 kB / 1.286 GB, free: 9.047 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005384/0.3648, allocations: 79.91 kB / 1.286 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.602e-05/0.3648, allocations: 30.56 kB / 1.286 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.3648, allocations: 0 / 1.286 GB, free: 8.93 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003969/0.3652, allocations: 93.53 kB / 1.286 GB, free: 8.832 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/0.3653, allocations: 55.41 kB / 1.286 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.812e-05/0.3654, allocations: 101.9 kB / 1.286 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.3654, allocations: 25.7 kB / 1.286 GB, free: 8.625 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.44e-05/0.3655, allocations: 84.12 kB / 1.286 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.3655, allocations: 7.953 kB / 1.286 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.3655, allocations: 13.72 kB / 1.286 GB, free: 8.512 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000151/0.3657, allocations: 315 kB / 1.286 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.497e-05/0.3657, allocations: 19.98 kB / 1.286 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.64e-05/0.3658, allocations: 15.97 kB / 1.286 GB, free: 8.16 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001505/0.366, allocations: 44.77 kB / 1.287 GB, free: 8.113 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.903e-06/0.366, allocations: 3.938 kB / 1.287 GB, free: 8.109 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000214/0.3662, allocations: 73.66 kB / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3662, allocations: 4 kB / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3662, allocations: 4 kB / 1.287 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.3662, allocations: 0 / 1.287 GB, free: 8.023 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.308e-05/0.3663, allocations: 7.984 kB / 1.287 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.3663, allocations: 0 / 1.287 GB, free: 8.016 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.818e-05/0.3664, allocations: 7.938 kB / 1.287 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-06/0.3664, allocations: 0 / 1.287 GB, free: 8.008 MB / 0.9825 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.672e-05/0.3665, allocations: 121.8 kB / 1.287 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.467e-05/0.3665, allocations: 4.031 kB / 1.287 GB, free: 7.875 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.3667, allocations: 69.28 kB / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.3667, allocations: 0 / 1.287 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3667, allocations: 7.938 kB / 1.287 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3667, allocations: 3.938 kB / 1.287 GB, free: 7.789 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001765/0.3669, allocations: 140.9 kB / 1.287 GB, free: 7.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3669, allocations: 4 kB / 1.287 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.832e-05/0.367, allocations: 11.98 kB / 1.287 GB, free: 7.594 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.367, allocations: 4.031 kB / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.367, allocations: 0 / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.367, allocations: 0 / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.367, allocations: 0 / 1.287 GB, free: 7.59 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002771/0.3673, allocations: 165.2 kB / 1.287 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.023e-05/0.3673, allocations: 7.984 kB / 1.287 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.3673, allocations: 0 / 1.287 GB, free: 7.406 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.619e-05/0.3674, allocations: 7.984 kB / 1.287 GB, free: 7.398 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.907e-05/0.3674, allocations: 8.031 kB / 1.287 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.166e-06/0.3674, allocations: 0 / 1.287 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 5.534e-05/0.3675, allocations: 87.27 kB / 1.287 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of sort global known variables: time 8e-08/0.3675, allocations: 0 / 1.287 GB, free: 7.305 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002412/0.3677, allocations: 15.94 kB / 1.287 GB, free: 7.289 MB / 0.9825 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.000659/0.3684, allocations: 0.7084 MB / 1.288 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002176/0.3686, allocations: 39.98 kB / 1.288 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3686, allocations: 0 / 1.288 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.867e-05/0.3687, allocations: 27.86 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003115/0.369, allocations: 2.188 kB / 1.288 GB, free: 6.488 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004639/0.3695, allocations: 159 kB / 1.288 GB, free: 6.293 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.912e-05/0.3695, allocations: 59.36 kB / 1.288 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.853e-05/0.3696, allocations: 8.094 kB / 1.288 GB, free: 6.207 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.435e-05/0.3696, allocations: 15.44 kB / 1.288 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.3696, allocations: 0 / 1.288 GB, free: 6.191 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03099/0.4006, allocations: 2.129 MB / 1.29 GB, free: 4.191 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.86, allocations: 0 / 1.29 GB, free: 4.191 MB / 0.9825 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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.0441074850969]