Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.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.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_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.00782/0.00782, allocations: 100.6 kB / 15.73 MB, free: 6.016 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.001861/0.001861, allocations: 189.7 kB / 16.67 MB, free: 5.934 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.598/2.598, allocations: 437 MB / 0.7105 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 67.84 kB / 1.018 GB, free: 9.867 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7472/0.7492, allocations: 151.6 MB / 1.166 GB, free: 3.773 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.002005/0.7512, allocations: 0.5866 MB / 1.167 GB, free: 3.191 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0008502/0.7521, allocations: 328.8 kB / 1.167 GB, free: 2.871 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.755e-05/0.7521, allocations: 0 / 1.167 GB, free: 2.871 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.981e-05/0.7522, allocations: 3.938 kB / 1.167 GB, free: 2.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.226e-06/0.7522, allocations: 0 / 1.167 GB, free: 2.867 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005431/0.7527, allocations: 109.2 kB / 1.167 GB, free: 2.762 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.395e-05/0.7528, allocations: 4 kB / 1.167 GB, free: 2.758 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.78e-05/0.7529, allocations: 3.984 kB / 1.167 GB, free: 2.754 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.487e-05/0.7529, allocations: 0 / 1.167 GB, free: 2.754 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.396e-05/0.7529, allocations: 0 / 1.167 GB, free: 2.754 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.508e-05/0.7529, allocations: 4 kB / 1.167 GB, free: 2.75 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004693/0.7534, allocations: 267.7 kB / 1.167 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.086e-05/0.7534, allocations: 0 / 1.167 GB, free: 2.488 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.883e-05/0.7534, allocations: 4 kB / 1.167 GB, free: 2.484 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.7537, allocations: 87.5 kB / 1.168 GB, free: 2.402 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.7537, allocations: 4 kB / 1.168 GB, free: 2.398 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.024e-06/0.7537, allocations: 4 kB / 1.168 GB, free: 2.395 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.862e-06/0.7537, allocations: 0 / 1.168 GB, free: 2.395 MB / 0.8887 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.0004115/0.7541, allocations: 339.2 kB / 1.168 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.7542, allocations: 12.91 kB / 1.168 GB, free: 2 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.808e-05/0.7542, allocations: 30.75 kB / 1.168 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.651e-05/0.7543, allocations: 4.938 kB / 1.168 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.7544, allocations: 160.4 kB / 1.168 GB, free: 1.762 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.7544, allocations: 4.312 kB / 1.168 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-06/0.7544, allocations: 384 / 1.168 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.901e-05/0.7545, allocations: 34.27 kB / 1.168 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.7545, allocations: 3.938 kB / 1.168 GB, free: 1.715 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-06/0.7545, allocations: 4 kB / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.7546, allocations: 0 / 1.168 GB, free: 1.711 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.956e-05/0.7546, allocations: 3.984 kB / 1.168 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.7547, allocations: 149.6 kB / 1.168 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.498e-05/0.7548, allocations: 25.02 kB / 1.168 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.996e-05/0.7548, allocations: 12.86 kB / 1.168 GB, free: 1.465 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005317/0.7553, allocations: 421.6 kB / 1.169 GB, free: 0.9609 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.7554, allocations: 34.56 kB / 1.169 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.7554, allocations: 0 / 1.169 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of matching and sorting (n=1): time 0.0001519/0.7555, allocations: 45.58 kB / 1.169 GB, free: 0.8672 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.7556, allocations: 55.53 kB / 1.169 GB, free: 0.8008 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.224e-05/0.7557, allocations: 89.86 kB / 1.169 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.7557, allocations: 25.7 kB / 1.169 GB, free: 0.6719 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.581e-05/0.7557, allocations: 80.14 kB / 1.169 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.198e-05/0.7557, allocations: 0 / 1.169 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.013e-05/0.7558, allocations: 13.72 kB / 1.169 GB, free: 0.5703 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.7559, allocations: 318.8 kB / 1.169 GB, free: 256 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.538e-06/0.7559, allocations: 0 / 1.169 GB, free: 256 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.212e-06/0.756, allocations: 4 kB / 1.169 GB, free: 252 kB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.841e-05/0.756, allocations: 12.86 kB / 1.169 GB, free: 236 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.756, allocations: 0 / 1.169 GB, free: 236 kB / 0.8887 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.949e-05/0.7561, allocations: 37.69 kB / 1.169 GB, free: 192 kB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.7561, allocations: 4 kB / 1.169 GB, free: 188 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.7561, allocations: 7.875 kB / 1.169 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.354e-05/0.7561, allocations: 0 / 1.169 GB, free: 180 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.871e-05/0.7562, allocations: 4 kB / 1.169 GB, free: 176 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.7562, allocations: 96 / 1.169 GB, free: 176 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.059e-05/0.7562, allocations: 7.938 kB / 1.169 GB, free: 168 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.061e-06/0.7562, allocations: 0 / 1.169 GB, free: 168 kB / 0.8887 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.64e-05/0.7563, allocations: 109.8 kB / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.918e-05/0.7563, allocations: 0 / 1.17 GB, free: 48 kB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001197/0.7565, allocations: 44.75 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.7565, allocations: 0 / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.7565, allocations: 3.938 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.7565, allocations: 4.031 kB / 1.17 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.7566, allocations: 145.7 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.7566, allocations: 0 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.189e-05/0.7567, allocations: 4 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.7567, allocations: 0 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.7567, allocations: 3.938 kB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.7567, allocations: 0 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.7567, allocations: 0 / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.89e-05/0.7568, allocations: 65.08 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.115e-05/0.7569, allocations: 81.09 kB / 1.17 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.7569, allocations: 3.938 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.124e-06/0.7569, allocations: 0 / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.272e-05/0.7569, allocations: 4 kB / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-06/0.7569, allocations: 0 / 1.17 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.374e-05/0.757, allocations: 75.28 kB / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1e-07/0.757, allocations: 0 / 1.17 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002071/0.7572, allocations: 12 kB / 1.17 GB, free: 15.51 MB / 0.9044 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.0004815/0.7577, allocations: 0.6163 MB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 7.766e-05/0.7578, allocations: 7.984 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7578, allocations: 0 / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 6.171e-06/0.7578, allocations: 0 / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000135/0.7579, allocations: 4.156 kB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002888/0.7582, allocations: 106.6 kB / 1.171 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.7585, allocations: 0.6767 MB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.545e-05/0.7585, allocations: 0 / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.531e-05/0.7585, allocations: 7.438 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of SimCode: time 2.71e-07/0.7586, allocations: 4 kB / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02153/0.7801, allocations: 1.193 MB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.967/8.747, allocations: 14.92 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches