Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_9_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.0009343/0.0009382, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.006965/0.006965, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.228/1.228, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.121/2.121, allocations: 390.9 MB / 0.6664 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003078, allocations: 12 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5562/0.5565, allocations: 142.4 MB / 0.9552 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001175/0.5578, allocations: 1.158 MB / 0.9563 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005673/0.5583, allocations: 415.8 kB / 0.9567 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.754e-05/0.5584, allocations: 0 / 0.9567 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.298e-05/0.5584, allocations: 1.125 kB / 0.9567 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.521e-05/0.5584, allocations: 3.938 kB / 0.9567 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002576/0.5587, allocations: 72.34 kB / 0.9568 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.202e-05/0.5587, allocations: 25.89 kB / 0.9568 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.461e-05/0.5588, allocations: 3.219 kB / 0.9568 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.12e-05/0.5589, allocations: 23.66 kB / 0.9568 GB, free: 6.41 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.906e-05/0.5589, allocations: 7.141 kB / 0.9568 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.629e-06/0.5589, allocations: 1.125 kB / 0.9568 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002876/0.5592, allocations: 271.1 kB / 0.9571 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 9.127e-06/0.5592, allocations: 3.938 kB / 0.9571 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.145e-05/0.5592, allocations: 40.59 kB / 0.9571 GB, free: 6.211 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.5594, allocations: 108.2 kB / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.5594, allocations: 0 / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5594, allocations: 0 / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.755e-06/0.5594, allocations: 0 / 0.9572 GB, free: 6.137 MB / 0.7169 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.0003052/0.5597, allocations: 361 kB / 0.9576 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.5597, allocations: 8.344 kB / 0.9576 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.066e-05/0.5598, allocations: 36.31 kB / 0.9576 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.76e-05/0.5598, allocations: 2.469 kB / 0.9576 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.941e-05/0.5599, allocations: 177.5 kB / 0.9578 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-06/0.5599, allocations: 1.719 kB / 0.9578 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.776e-06/0.5599, allocations: 1.719 kB / 0.9578 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001441/0.5601, allocations: 63.42 kB / 0.9578 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.5601, allocations: 3.938 kB / 0.9578 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.5601, allocations: 3.984 kB / 0.9579 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.5601, allocations: 0 / 0.9579 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001632/0.5603, allocations: 44.91 kB / 0.9579 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002086/0.5605, allocations: 250 kB / 0.9581 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.5606, allocations: 48.94 kB / 0.9582 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.281e-05/0.5607, allocations: 32.17 kB / 0.9582 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005099/0.5612, allocations: 463.9 kB / 0.9587 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.346e-05/0.5612, allocations: 31.72 kB / 0.9587 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.5612, allocations: 0 / 0.9587 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003303/0.5616, allocations: 100.7 kB / 0.9588 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.402e-05/0.5616, allocations: 51.41 kB / 0.9588 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.908e-05/0.5616, allocations: 109.5 kB / 0.9589 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.464e-06/0.5616, allocations: 30.7 kB / 0.959 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.936e-05/0.5617, allocations: 85.42 kB / 0.959 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.341e-05/0.5617, allocations: 5.219 kB / 0.9591 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.756e-05/0.5617, allocations: 13.66 kB / 0.9591 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.23e-05/0.5617, allocations: 323.8 kB / 0.9594 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.995e-05/0.5618, allocations: 22.95 kB / 0.9594 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.062e-05/0.5619, allocations: 17.92 kB / 0.9594 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.5621, allocations: 58.56 kB / 0.9595 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.5621, allocations: 3.938 kB / 0.9595 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000192/0.5623, allocations: 79.58 kB / 0.9595 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/0.5623, allocations: 5.938 kB / 0.9596 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.316e-06/0.5623, allocations: 0 / 0.9596 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.115e-06/0.5623, allocations: 0 / 0.9596 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.138e-05/0.5624, allocations: 13.14 kB / 0.9596 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.577e-06/0.5624, allocations: 3.938 kB / 0.9596 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.608e-05/0.5624, allocations: 13.67 kB / 0.9596 GB, free: 3.738 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-06/0.5624, allocations: 1.219 kB / 0.9596 GB, free: 3.738 MB / 0.7169 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 3.941e-05/0.5625, allocations: 114.8 kB / 0.9597 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.359e-05/0.5625, allocations: 3.25 kB / 0.9597 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002061/0.5627, allocations: 85.55 kB / 0.9598 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.5628, allocations: 0 / 0.9598 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.5628, allocations: 5.516 kB / 0.9598 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.5628, allocations: 0 / 0.9598 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.686e-05/0.5629, allocations: 162.1 kB / 0.9599 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.5629, allocations: 1.375 kB / 0.9599 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.372e-05/0.5629, allocations: 12.3 kB / 0.9599 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.343e-06/0.5629, allocations: 0 / 0.9599 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.5629, allocations: 1.469 kB / 0.96 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.563, allocations: 4.031 kB / 0.96 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.563, allocations: 3.938 kB / 0.96 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002071/0.5632, allocations: 177.7 kB / 0.9601 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.281e-05/0.5632, allocations: 82.42 kB / 0.9602 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.077e-05/0.5632, allocations: 1.375 kB / 0.9602 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.151e-05/0.5633, allocations: 10.17 kB / 0.9602 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.748e-05/0.5633, allocations: 1.375 kB / 0.9602 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.5633, allocations: 0 / 0.9602 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.058e-05/0.5633, allocations: 89.02 kB / 0.9603 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5634, allocations: 0 / 0.9603 GB, free: 2.996 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002108/0.5636, allocations: 12.38 kB / 0.9603 GB, free: 2.996 MB / 0.7169 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.0003814/0.564, allocations: 0.7271 MB / 0.961 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001822/0.5641, allocations: 51.52 kB / 0.9611 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.5642, allocations: 1.375 kB / 0.9611 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.158e-05/0.5642, allocations: 28.55 kB / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.5645, allocations: 1.375 kB / 0.9611 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000298/0.5648, allocations: 154.8 kB / 0.9613 GB, free: 2.098 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.861e-05/0.5649, allocations: 0.6746 MB / 0.9619 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.893e-05/0.5649, allocations: 1.375 kB / 0.9619 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.292e-05/0.5649, allocations: 20.86 kB / 0.9619 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of SimCode: time 3e-07/0.5649, allocations: 0 / 0.9619 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009299/0.5742, allocations: 1.334 MB / 0.9632 GB, free: 0.75 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/0.5744, allocations: 200.2 kB / 0.9634 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.556/2.13, allocations: 0.5 kB / 0.9634 GB, free: 0.4961 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches