Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008803/0.008803, allocations: 96.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002056/0.002056, allocations: 194.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.663/2.663, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 71.88 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2947, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.003343/0.2981, allocations: 1.429 MB / 1.168 GB, free: 5.84 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008207/0.2989, allocations: 383.5 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.624e-05/0.299, allocations: 4 kB / 1.168 GB, free: 5.457 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.127e-05/0.299, allocations: 3.938 kB / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.005e-05/0.2991, allocations: 0 / 1.168 GB, free: 5.453 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005551/0.2997, allocations: 134.8 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.277e-05/0.2998, allocations: 23.92 kB / 1.168 GB, free: 5.301 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.324e-05/0.2999, allocations: 7.984 kB / 1.168 GB, free: 5.293 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.946e-05/0.2999, allocations: 8 kB / 1.168 GB, free: 5.285 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.321e-05/0.3, allocations: 15.92 kB / 1.168 GB, free: 5.27 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.539e-05/0.3, allocations: 4 kB / 1.168 GB, free: 5.266 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004411/0.3004, allocations: 271.7 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.974e-05/0.3005, allocations: 15.92 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.762e-05/0.3005, allocations: 11.94 kB / 1.168 GB, free: 4.973 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.3008, allocations: 111.9 kB / 1.169 GB, free: 4.863 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3008, allocations: 0 / 1.169 GB, free: 4.863 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3008, allocations: 0 / 1.169 GB, free: 4.863 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.3008, allocations: 0 / 1.169 GB, free: 4.863 MB / 0.92 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.0005313/0.3013, allocations: 367.1 kB / 1.169 GB, free: 4.453 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.3014, allocations: 8.031 kB / 1.169 GB, free: 4.445 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.7e-05/0.3014, allocations: 34.75 kB / 1.169 GB, free: 4.402 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.3015, allocations: 4.938 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001404/0.3016, allocations: 164.4 kB / 1.169 GB, free: 4.199 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.3017, allocations: 8.375 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-06/0.3017, allocations: 384 / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.3019, allocations: 54.17 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.3019, allocations: 3.938 kB / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.3019, allocations: 0 / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.3019, allocations: 0 / 1.169 GB, free: 4.129 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.3021, allocations: 35.97 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003803/0.3025, allocations: 248.9 kB / 1.169 GB, free: 3.801 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001388/0.3026, allocations: 42.5 kB / 1.169 GB, free: 3.75 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.907e-05/0.3027, allocations: 32.83 kB / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007349/0.3035, allocations: 457.5 kB / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.3035, allocations: 34.56 kB / 1.17 GB, free: 3.133 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.433e-06/0.3035, allocations: 0 / 1.17 GB, free: 3.133 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0004233/0.304, allocations: 85.64 kB / 1.17 GB, free: 3.043 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.304, allocations: 51.41 kB / 1.17 GB, free: 2.98 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.58e-05/0.3041, allocations: 109.8 kB / 1.17 GB, free: 2.863 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.3042, allocations: 25.7 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.831e-05/0.3042, allocations: 84.14 kB / 1.17 GB, free: 2.746 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.3042, allocations: 7.938 kB / 1.17 GB, free: 2.738 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.3043, allocations: 21.84 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3044, allocations: 314.8 kB / 1.171 GB, free: 2.395 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.488e-05/0.3045, allocations: 19.92 kB / 1.171 GB, free: 2.375 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.406e-05/0.3046, allocations: 15.98 kB / 1.171 GB, free: 2.359 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001567/0.3047, allocations: 48.88 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3048, allocations: 7.875 kB / 1.171 GB, free: 2.301 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002243/0.305, allocations: 65.66 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.305, allocations: 4 kB / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.305, allocations: 0 / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.305, allocations: 0 / 1.171 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.004e-05/0.3051, allocations: 8 kB / 1.171 GB, free: 2.219 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.3051, allocations: 3.984 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.616e-05/0.3052, allocations: 15.92 kB / 1.171 GB, free: 2.199 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.3052, allocations: 0 / 1.171 GB, free: 2.199 MB / 0.92 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 6.986e-05/0.3053, allocations: 113.8 kB / 1.171 GB, free: 2.078 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.13e-05/0.3053, allocations: 4 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002516/0.3056, allocations: 77.11 kB / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.3056, allocations: 0 / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3056, allocations: 0 / 1.171 GB, free: 1.988 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3056, allocations: 4.031 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001614/0.3058, allocations: 165.6 kB / 1.171 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3058, allocations: 3.984 kB / 1.171 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.748e-05/0.3058, allocations: 8 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.3059, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.3059, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3059, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3059, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002605/0.3061, allocations: 179.4 kB / 1.171 GB, free: 1.57 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.37e-05/0.3062, allocations: 85.05 kB / 1.171 GB, free: 1.469 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.381e-05/0.3062, allocations: 0 / 1.171 GB, free: 1.469 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.724e-05/0.3063, allocations: 4 kB / 1.171 GB, free: 1.465 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.3064, allocations: 4.234 kB / 1.171 GB, free: 1.461 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-06/0.3064, allocations: 4 kB / 1.171 GB, free: 1.457 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.053e-05/0.3064, allocations: 87.28 kB / 1.171 GB, free: 1.371 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3064, allocations: 4.031 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000239/0.3067, allocations: 12 kB / 1.172 GB, free: 1.355 MB / 0.92 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.0005932/0.3073, allocations: 0.7161 MB / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002187/0.3075, allocations: 36 kB / 1.172 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3075, allocations: 0 / 1.172 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.801e-05/0.3076, allocations: 23.97 kB / 1.172 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003082/0.3079, allocations: 5.875 kB / 1.172 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004466/0.3084, allocations: 143 kB / 1.172 GB, free: 380 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.3086, allocations: 0.6808 MB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.909e-05/0.3087, allocations: 7.938 kB / 1.173 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.231e-05/0.3087, allocations: 7.438 kB / 1.173 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of SimCode: time 4.51e-07/0.3087, allocations: 0 / 1.173 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.3281, allocations: 1.594 MB / 1.175 GB, free: 14.13 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/8.026, allocations: 14.12 kB / 1.175 GB, free: 14.12 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches