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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0008817/0.0008817, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005126/0.005126, allocations: 171.9 kB / 16.26 MB, free: 6.613 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.309/1.309, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.489/2.489, allocations: 437.8 MB / 0.7121 GB, free: 6.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003629/0.0003627, allocations: 12.23 kB / 0.8729 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6534/0.6538, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001683/0.6555, allocations: 1.165 MB / 1.024 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007654/0.6563, allocations: 407.6 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.086e-05/0.6563, allocations: 4 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.663e-05/0.6564, allocations: 0 / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.167e-05/0.6564, allocations: 3.938 kB / 1.025 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004078/0.6568, allocations: 81.59 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.396e-05/0.6569, allocations: 23.92 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.512e-05/0.657, allocations: 4 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.425e-05/0.657, allocations: 11.92 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.237e-05/0.6571, allocations: 15.92 kB / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.19e-05/0.6571, allocations: 0 / 1.025 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003704/0.6575, allocations: 279.6 kB / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.6575, allocations: 0 / 1.025 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.719e-05/0.6576, allocations: 37.64 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.6578, allocations: 107.8 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.6578, allocations: 0 / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.684e-06/0.6578, allocations: 0 / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.6578, allocations: 0 / 1.025 GB, free: 13.73 MB / 0.7794 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.0004685/0.6583, allocations: 361.7 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.6583, allocations: 12.03 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.602e-05/0.6584, allocations: 30.75 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.965e-05/0.6584, allocations: 8.844 kB / 1.026 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.6585, allocations: 176.2 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.6586, allocations: 384 / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.48e-05/0.6586, allocations: 8.375 kB / 1.026 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.6588, allocations: 54.23 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.6588, allocations: 3.938 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.6588, allocations: 4 kB / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.6588, allocations: 0 / 1.026 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00018/0.659, allocations: 47.95 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003554/0.6594, allocations: 245 kB / 1.026 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001453/0.6595, allocations: 54.42 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.762e-05/0.6596, allocations: 28.91 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006815/0.6603, allocations: 465.4 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.6604, allocations: 34.56 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.123e-06/0.6604, allocations: 0 / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0004021/0.6608, allocations: 105.5 kB / 1.027 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.6608, allocations: 55.41 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.813e-05/0.6609, allocations: 101.9 kB / 1.027 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.6609, allocations: 33.81 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.144e-05/0.661, allocations: 84.14 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.661, allocations: 3.906 kB / 1.027 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.114e-05/0.661, allocations: 9.719 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.243e-05/0.6611, allocations: 318.8 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.832e-05/0.6612, allocations: 15.98 kB / 1.027 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.333e-05/0.6613, allocations: 31.97 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.6614, allocations: 44.83 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6615, allocations: 8 kB / 1.027 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.00023/0.6617, allocations: 85.59 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.6617, allocations: 4 kB / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.6617, allocations: 0 / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.6618, allocations: 0 / 1.028 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.976e-05/0.6618, allocations: 16.02 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.6619, allocations: 3.938 kB / 1.028 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.933e-05/0.6619, allocations: 8 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.6619, allocations: 0 / 1.028 GB, free: 10.99 MB / 0.7794 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 7.978e-05/0.662, allocations: 118.3 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.6621, allocations: 3.984 kB / 1.028 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002539/0.6623, allocations: 89.17 kB / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.6623, allocations: 0 / 1.028 GB, free: 10.77 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.6623, allocations: 4 kB / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.6623, allocations: 0 / 1.028 GB, free: 10.76 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001542/0.6625, allocations: 165.5 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6625, allocations: 0 / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.928e-05/0.6626, allocations: 12.03 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.6626, allocations: 3.984 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.6626, allocations: 4 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6626, allocations: 3.938 kB / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.6626, allocations: 0 / 1.028 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002736/0.6629, allocations: 179.4 kB / 1.028 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.998e-05/0.663, allocations: 81.11 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.663, allocations: 256 / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.572e-05/0.6631, allocations: 8 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.153e-05/0.6631, allocations: 11.98 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-06/0.6631, allocations: 4.031 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.524e-05/0.6631, allocations: 79.28 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6632, allocations: 0 / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002404/0.6634, allocations: 19.94 kB / 1.028 GB, free: 10.12 MB / 0.7794 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.0005783/0.664, allocations: 0.7241 MB / 1.029 GB, free: 9.363 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002179/0.6642, allocations: 48 kB / 1.029 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6642, allocations: 0 / 1.029 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.852e-05/0.6643, allocations: 31.91 kB / 1.029 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002667/0.6646, allocations: 4 kB / 1.029 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004065/0.665, allocations: 150.4 kB / 1.029 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.6653, allocations: 0.677 MB / 1.03 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.347e-05/0.6653, allocations: 4 kB / 1.03 GB, free: 8.391 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.6653, allocations: 11.44 kB / 1.03 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of SimCode: time 2.61e-07/0.6653, allocations: 0 / 1.03 GB, free: 8.379 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.506/1.171, allocations: 1.338 MB / 1.031 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/1.172, allocations: 200.8 kB / 1.031 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.147/3.318, allocations: 0 / 1.031 GB, free: 6.902 MB / 0.7794 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_RegNonZeroPower_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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