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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001081/0.001081, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 192.7 kB / 16.53 MB, free: 6.664 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.295/1.295, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.291/2.291, allocations: 390.3 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 0.8126 GB, free: 14.18 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.602/0.6033, allocations: 140.4 MB / 0.9497 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.00243/0.6058, allocations: 1.438 MB / 0.9511 GB, free: 8 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005605/0.6064, allocations: 385.6 kB / 0.9515 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.674e-05/0.6064, allocations: 0 / 0.9515 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.528e-05/0.6064, allocations: 0 / 0.9515 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.726e-05/0.6065, allocations: 4.656 kB / 0.9515 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004251/0.6069, allocations: 112.1 kB / 0.9516 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.518e-05/0.607, allocations: 26.52 kB / 0.9516 GB, free: 7.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.328e-05/0.6071, allocations: 7.406 kB / 0.9516 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.461e-05/0.6071, allocations: 11.2 kB / 0.9516 GB, free: 7.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.19e-05/0.6072, allocations: 11.92 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.6072, allocations: 2.75 kB / 0.9517 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003662/0.6076, allocations: 280.2 kB / 0.9519 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.272e-05/0.6076, allocations: 4 kB / 0.9519 GB, free: 7.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.01e-05/0.6076, allocations: 14.86 kB / 0.9519 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.6078, allocations: 104.3 kB / 0.952 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.6079, allocations: 4 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.665e-06/0.6079, allocations: 0 / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.071e-05/0.6079, allocations: 3.938 kB / 0.952 GB, free: 7.344 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.000453/0.6083, allocations: 361.3 kB / 0.9524 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.433e-05/0.6084, allocations: 10.16 kB / 0.9524 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.768e-05/0.6084, allocations: 30.75 kB / 0.9524 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.887e-05/0.6085, allocations: 11.69 kB / 0.9524 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.996e-05/0.6086, allocations: 165.7 kB / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.6086, allocations: 1.812 kB / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.007e-05/0.6086, allocations: 384 / 0.9526 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001706/0.6088, allocations: 50.8 kB / 0.9527 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.6088, allocations: 3.938 kB / 0.9527 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.6088, allocations: 3.938 kB / 0.9527 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.6088, allocations: 1.344 kB / 0.9527 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001678/0.609, allocations: 42.39 kB / 0.9527 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002798/0.6093, allocations: 254.1 kB / 0.9529 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.6094, allocations: 40.56 kB / 0.953 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.368e-05/0.6095, allocations: 23.03 kB / 0.953 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005964/0.6101, allocations: 459.3 kB / 0.9534 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.6101, allocations: 32.03 kB / 0.9535 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.6101, allocations: 4 kB / 0.9535 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003583/0.6105, allocations: 89.95 kB / 0.9536 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/0.6105, allocations: 52.41 kB / 0.9536 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.55e-05/0.6106, allocations: 105.2 kB / 0.9537 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.264e-06/0.6106, allocations: 29.64 kB / 0.9537 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.619e-05/0.6106, allocations: 86.7 kB / 0.9538 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.452e-05/0.6107, allocations: 8.031 kB / 0.9538 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.523e-05/0.6107, allocations: 12.53 kB / 0.9538 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.425e-05/0.6107, allocations: 320.1 kB / 0.9541 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.819e-05/0.6108, allocations: 13.27 kB / 0.9542 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.81e-05/0.6109, allocations: 21.89 kB / 0.9542 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.611, allocations: 44.28 kB / 0.9542 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.6111, allocations: 7.875 kB / 0.9542 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001812/0.6112, allocations: 62.36 kB / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.6113, allocations: 4.375 kB / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.6113, allocations: 0 / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.6113, allocations: 1.469 kB / 0.9543 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.552e-05/0.6114, allocations: 9.359 kB / 0.9543 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.6114, allocations: 1.469 kB / 0.9543 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.304e-05/0.6114, allocations: 15.61 kB / 0.9543 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-06/0.6114, allocations: 0 / 0.9543 GB, free: 4.957 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 4.032e-05/0.6115, allocations: 112.7 kB / 0.9544 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.365e-05/0.6115, allocations: 1.281 kB / 0.9544 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000201/0.6117, allocations: 76.56 kB / 0.9545 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.6117, allocations: 8.016 kB / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.6117, allocations: 0 / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.6117, allocations: 1.188 kB / 0.9545 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.6118, allocations: 166.4 kB / 0.9547 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.6119, allocations: 1.25 kB / 0.9547 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.174e-05/0.6119, allocations: 8.984 kB / 0.9547 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.6119, allocations: 1.469 kB / 0.9547 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.6119, allocations: 0 / 0.9547 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.6119, allocations: 1.375 kB / 0.9547 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.6119, allocations: 0 / 0.9547 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.6121, allocations: 176.5 kB / 0.9549 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.452e-05/0.6122, allocations: 77.11 kB / 0.9549 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.6122, allocations: 1.375 kB / 0.9549 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.757e-05/0.6123, allocations: 7.922 kB / 0.9549 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.18e-05/0.6123, allocations: 1.5 kB / 0.9549 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-06/0.6123, allocations: 4 kB / 0.9549 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.359e-05/0.6123, allocations: 96.3 kB / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/0.6123, allocations: 0 / 0.955 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002206/0.6126, allocations: 16.72 kB / 0.955 GB, free: 4.199 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.0004142/0.613, allocations: 0.7139 MB / 0.9557 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002073/0.6132, allocations: 41.83 kB / 0.9558 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.6132, allocations: 0.8438 kB / 0.9558 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.08e-05/0.6133, allocations: 15.64 kB / 0.9558 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.6136, allocations: 7.281 kB / 0.9558 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003799/0.614, allocations: 142.8 kB / 0.9559 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001085/0.6141, allocations: 0.6825 MB / 0.9566 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.214e-05/0.6141, allocations: 1 kB / 0.9566 GB, free: 2.621 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.6141, allocations: 12.56 kB / 0.9566 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.6141, allocations: 0 / 0.9566 GB, free: 2.609 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01759/0.6317, allocations: 1.579 MB / 0.9582 GB, free: 1.723 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.443/8.075, allocations: 9.766 kB / 0.9582 GB, free: 1.719 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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