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.008299/0.008299, allocations: 102.9 kB / 15.74 MB, free: 5.551 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.002131/0.002131, allocations: 196.2 kB / 16.67 MB, free: 5.48 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 15.16 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.619/2.619, allocations: 437 MB / 0.7105 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 68.11 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7599/0.7618, allocations: 151.6 MB / 1.166 GB, free: 3.805 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002774/0.7646, allocations: 1.445 MB / 1.168 GB, free: 2.348 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007441/0.7654, allocations: 381.9 kB / 1.168 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.379e-05/0.7655, allocations: 4 kB / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.64e-05/0.7655, allocations: 0 / 1.168 GB, free: 1.969 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.091e-05/0.7656, allocations: 3.938 kB / 1.168 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.766, allocations: 121.4 kB / 1.168 GB, free: 1.848 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.607e-05/0.7661, allocations: 27.97 kB / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 9.435e-05/0.7662, allocations: 0 / 1.168 GB, free: 1.82 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.209e-05/0.7663, allocations: 15.92 kB / 1.168 GB, free: 1.805 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.691e-05/0.7663, allocations: 11.94 kB / 1.168 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.7663, allocations: 7.938 kB / 1.168 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004466/0.7668, allocations: 275.6 kB / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.7668, allocations: 0 / 1.168 GB, free: 1.516 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.924e-05/0.7668, allocations: 11.94 kB / 1.168 GB, free: 1.504 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.7671, allocations: 115.3 kB / 1.169 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.7671, allocations: 4 kB / 1.169 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.133e-06/0.7671, allocations: 0 / 1.169 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.911e-06/0.7671, allocations: 0 / 1.169 GB, free: 1.391 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005633/0.7677, allocations: 367.1 kB / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.7677, allocations: 8.922 kB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.12e-05/0.7678, allocations: 38.75 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.765e-05/0.7679, allocations: 0.9375 kB / 1.169 GB, free: 0.9258 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.768, allocations: 168.3 kB / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.187e-05/0.768, allocations: 384 / 1.169 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.233e-06/0.768, allocations: 4.375 kB / 1.169 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001756/0.7682, allocations: 50.23 kB / 1.169 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.7682, allocations: 3.938 kB / 1.169 GB, free: 0.6602 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.7683, allocations: 3.938 kB / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.7683, allocations: 0 / 1.169 GB, free: 0.6562 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001736/0.7684, allocations: 35.95 kB / 1.169 GB, free: 0.6211 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003471/0.7688, allocations: 256.9 kB / 1.169 GB, free: 328 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001311/0.7689, allocations: 42.5 kB / 1.169 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.452e-05/0.769, allocations: 16.91 kB / 1.169 GB, free: 256 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007291/0.7698, allocations: 469.4 kB / 1.17 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.7698, allocations: 34.5 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.7698, allocations: 0 / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2): time 0.0003889/0.7702, allocations: 85.73 kB / 1.17 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/0.7703, allocations: 55.41 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.034e-05/0.7704, allocations: 101.8 kB / 1.17 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.7704, allocations: 25.7 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.869e-05/0.7704, allocations: 88.14 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.7705, allocations: 3.953 kB / 1.17 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.7705, allocations: 13.72 kB / 1.17 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.7707, allocations: 322.8 kB / 1.171 GB, free: 14.92 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.373e-05/0.7708, allocations: 16.02 kB / 1.171 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.247e-05/0.7708, allocations: 19.98 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.771, allocations: 40.77 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.771, allocations: 3.938 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002188/0.7712, allocations: 73.7 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.7713, allocations: 4 kB / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.7713, allocations: 0 / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.7713, allocations: 0 / 1.171 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.404e-05/0.7714, allocations: 11.98 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.7714, allocations: 0 / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.853e-05/0.7715, allocations: 11.94 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.7715, allocations: 0 / 1.171 GB, free: 14.73 MB / 0.9044 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.954e-05/0.7716, allocations: 117.8 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.758e-05/0.7716, allocations: 4 kB / 1.171 GB, free: 14.61 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000245/0.7719, allocations: 81.11 kB / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.7719, allocations: 0 / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.7719, allocations: 256 / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.7719, allocations: 0 / 1.171 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001796/0.7721, allocations: 165.6 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.7721, allocations: 4 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.786e-05/0.7721, allocations: 12.02 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.7721, allocations: 0 / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.191e-06/0.7722, allocations: 0 / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.7722, allocations: 0 / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/0.7722, allocations: 4 kB / 1.171 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002676/0.7724, allocations: 171.3 kB / 1.171 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.856e-05/0.7725, allocations: 85.09 kB / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.7725, allocations: 0 / 1.171 GB, free: 14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.634e-05/0.7726, allocations: 7.984 kB / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.985e-05/0.7726, allocations: 0 / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-06/0.7727, allocations: 4 kB / 1.171 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.967e-05/0.7727, allocations: 87.27 kB / 1.171 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7727, allocations: 0 / 1.171 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.000241/0.773, allocations: 15.94 kB / 1.172 GB, free: 13.89 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 (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.0006469/0.7736, allocations: 0.7201 MB / 1.172 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002146/0.7738, allocations: 39.95 kB / 1.172 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.7739, allocations: 4.094 kB / 1.172 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 8.61e-05/0.7739, allocations: 15.98 kB / 1.172 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.7742, allocations: 7.938 kB / 1.172 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004277/0.7747, allocations: 139.1 kB / 1.172 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.775, allocations: 0.6729 MB / 1.173 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.941e-05/0.775, allocations: 7.984 kB / 1.173 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.904e-05/0.7751, allocations: 15.44 kB / 1.173 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of SimCode: time 2.4e-07/0.7751, allocations: 0 / 1.173 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.7977, allocations: 1.598 MB / 1.175 GB, free: 10.66 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.025/8.823, allocations: 5.828 kB / 1.175 GB, free: 10.66 MB / 0.9044 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