Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001775/0.001775, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.002463/0.002463, allocations: 219.2 kB / 22.24 MB, free: 5.258 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.501/1.501, 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.198/3.198, allocations: 0.49 GB / 0.7951 GB, free: 35.52 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.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_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.002042/0.002042, allocations: 64.66 kB / 1.154 GB, free: 25.61 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3896, allocations: 176.1 MB / 1.326 GB, free: 1.605 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003338/0.393, allocations: 1.461 MB / 1.327 GB, free: 144 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.394, allocations: 350.8 kB / 1.328 GB, free: 15.8 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.133e-05/0.394, allocations: 4 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 3.83e-05/0.3941, allocations: 0 / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 6.969e-05/0.3941, allocations: 7.938 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.000645/0.3948, allocations: 112.8 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0001104/0.3949, allocations: 23.92 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.395, allocations: 4.281 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 7.52e-05/0.3951, allocations: 19.91 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.499e-05/0.3952, allocations: 19.92 kB / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.592e-05/0.3952, allocations: 0 / 1.328 GB, free: 15.61 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005017/0.3957, allocations: 271.7 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.3957, allocations: 4 kB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.678e-05/0.3957, allocations: 11.92 kB / 1.328 GB, free: 15.33 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002734/0.396, allocations: 115.6 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.396, allocations: 0 / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.914e-06/0.396, allocations: 3.938 kB / 1.328 GB, free: 15.21 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.396, allocations: 0 / 1.328 GB, free: 15.21 MB / 1.029 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.0006247/0.3967, allocations: 290 kB / 1.328 GB, free: 14.89 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.3967, allocations: 12.03 kB / 1.328 GB, free: 14.88 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.435e-05/0.3968, allocations: 38.75 kB / 1.329 GB, free: 14.84 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.336e-05/0.3969, allocations: 4.891 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001591/0.397, allocations: 106.5 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.397, allocations: 384 / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.3971, allocations: 384 / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002202/0.3973, allocations: 50.23 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.3973, allocations: 3.938 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3973, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.3973, allocations: 4 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001704/0.3975, allocations: 43.89 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004135/0.3979, allocations: 220.1 kB / 1.329 GB, free: 14.34 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.398, allocations: 38.5 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.408e-05/0.3981, allocations: 20.91 kB / 1.329 GB, free: 14.27 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005284/0.3986, allocations: 83.91 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.3987, allocations: 30.56 kB / 1.329 GB, free: 14.15 MB / 1.029 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.3987, allocations: 11.88 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=2): time 0.0004045/0.3991, allocations: 89.69 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.3991, allocations: 51.41 kB / 1.329 GB, free: 13.98 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.663e-05/0.3992, allocations: 101.9 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.3992, allocations: 29.69 kB / 1.329 GB, free: 13.84 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.082e-05/0.3993, allocations: 84.14 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.283e-05/0.3993, allocations: 7.891 kB / 1.329 GB, free: 13.74 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.149e-05/0.3993, allocations: 13.72 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3995, allocations: 314.8 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.088e-05/0.3996, allocations: 19.97 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.238e-05/0.3997, allocations: 20.02 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000146/0.3998, allocations: 40.77 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.3998, allocations: 3.938 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002067/0.4, allocations: 65.66 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.4, allocations: 8 kB / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.4, allocations: 0 / 1.33 GB, free: 13.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.4001, allocations: 8.078 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.288e-05/0.4001, allocations: 7.984 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.4001, allocations: 0 / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.956e-05/0.4002, allocations: 4 kB / 1.33 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.4002, allocations: 7.984 kB / 1.33 GB, free: 13.21 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 (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 8.341e-05/0.4003, allocations: 114.3 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.843e-05/0.4003, allocations: 7.953 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.4005, allocations: 85.14 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.4006, allocations: 4 kB / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4006, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.4006, allocations: 0 / 1.33 GB, free: 12.98 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.4007, allocations: 128.7 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4007, allocations: 0 / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-05/0.4008, allocations: 11.98 kB / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.382e-06/0.4008, allocations: 0 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.283e-06/0.4008, allocations: 0 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4008, allocations: 0 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.4008, allocations: 256 / 1.33 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002584/0.4011, allocations: 175.4 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-06/0.4011, allocations: 0 / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.4011, allocations: 7.938 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.349e-05/0.4011, allocations: 7.984 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.4012, allocations: 4 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.4012, allocations: 0 / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.433e-05/0.4013, allocations: 87.27 kB / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.4013, allocations: 0 / 1.331 GB, free: 12.51 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002354/0.4015, allocations: 16.03 kB / 1.331 GB, free: 12.5 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 (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.0006576/0.4021, allocations: 0.7084 MB / 1.331 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002121/0.4024, allocations: 39.89 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4024, allocations: 0 / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 8.664e-05/0.4024, allocations: 24.08 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.4028, allocations: 4 kB / 1.331 GB, free: 11.7 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004671/0.4032, allocations: 151 kB / 1.331 GB, free: 11.51 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.758e-05/0.4033, allocations: 63.34 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 2.134e-05/0.4033, allocations: 0 / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.409e-05/0.4034, allocations: 7.438 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of SimCode: time 2.91e-07/0.4034, allocations: 0 / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.4343, allocations: 2.173 MB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.68, allocations: 0 / 1.334 GB, free: 9.379 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.60092918999726]