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.00604/0.00604, allocations: 96.95 kB / 15.73 MB, free: 6.488 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.001091/0.001091, allocations: 189.5 kB / 16.67 MB, free: 6.391 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.32 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.594/2.594, allocations: 390.3 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 67.61 kB / 0.9504 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2455, allocations: 140.4 MB / 1.087 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002701/0.2482, allocations: 1.427 MB / 1.089 GB, free: 0.5469 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007663/0.249, allocations: 379.5 kB / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.329e-05/0.2491, allocations: 0 / 1.089 GB, free: 176 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.738e-05/0.2491, allocations: 3.938 kB / 1.089 GB, free: 172 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.221e-05/0.2492, allocations: 7.938 kB / 1.089 GB, free: 164 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005203/0.2497, allocations: 120.9 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.991e-05/0.2498, allocations: 23.92 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 8.666e-05/0.2499, allocations: 7.984 kB / 1.089 GB, free: 12 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 5.199e-05/0.2499, allocations: 16 kB / 1.089 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 3.653e-05/0.25, allocations: 11.92 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.25, allocations: 0 / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.2504, allocations: 275.6 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.318e-05/0.2504, allocations: 4 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.518e-05/0.2504, allocations: 11.92 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002154/0.2506, allocations: 111.9 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2507, allocations: 8 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.2507, allocations: 0 / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.2507, allocations: 0 / 1.09 GB, free: 15.58 MB / 0.8575 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.0004613/0.2511, allocations: 367.1 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2512, allocations: 8.031 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.198e-05/0.2513, allocations: 30.75 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.145e-05/0.2513, allocations: 4.938 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001116/0.2514, allocations: 168.3 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.2515, allocations: 4.375 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.351e-05/0.2515, allocations: 8.375 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.2516, allocations: 54.22 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.2517, allocations: 11.88 kB / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.2517, allocations: 0 / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2517, allocations: 0 / 1.09 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.2519, allocations: 35.91 kB / 1.09 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003309/0.2522, allocations: 249 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001254/0.2523, allocations: 38.5 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.2525, allocations: 28.91 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006534/0.2531, allocations: 461.5 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.2531, allocations: 34.56 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 2.765e-06/0.2532, allocations: 0 / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0003563/0.2535, allocations: 85.58 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.332e-05/0.2536, allocations: 51.41 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.71e-05/0.2536, allocations: 105.8 kB / 1.091 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.2536, allocations: 29.7 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2538, allocations: 85.52 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.2538, allocations: 7.953 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.088e-05/0.2538, allocations: 13.72 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2539, allocations: 323 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.465e-05/0.254, allocations: 15.98 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.241e-05/0.2541, allocations: 15.92 kB / 1.092 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001523/0.2543, allocations: 44.75 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2543, allocations: 3.938 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002212/0.2545, allocations: 69.73 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.2545, allocations: 8 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2545, allocations: 0 / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2545, allocations: 3.984 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.768e-05/0.2546, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.147e-06/0.2546, allocations: 0 / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.782e-05/0.2547, allocations: 7.984 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.463e-06/0.2547, allocations: 4 kB / 1.092 GB, free: 12.92 MB / 0.8575 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.008e-05/0.2548, allocations: 113.8 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.2548, allocations: 4 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002371/0.2551, allocations: 77.11 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.2551, allocations: 3.984 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2551, allocations: 7.938 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.2551, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.2553, allocations: 165.5 kB / 1.092 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2553, allocations: 4.031 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.838e-05/0.2553, allocations: 11.98 kB / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2553, allocations: 0 / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.2554, allocations: 0 / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2554, allocations: 256 / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.2554, allocations: 0 / 1.092 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.2556, allocations: 175.3 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.2557, allocations: 85.11 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.2557, allocations: 0 / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.703e-05/0.2558, allocations: 7.984 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.412e-05/0.2558, allocations: 0 / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.2558, allocations: 0 / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.09e-05/0.2559, allocations: 87.27 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2559, allocations: 4 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002311/0.2561, allocations: 12 kB / 1.093 GB, free: 12.07 MB / 0.8575 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.0005931/0.2567, allocations: 0.7123 MB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002068/0.2569, allocations: 47.92 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.257, allocations: 0 / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.474e-05/0.257, allocations: 19.98 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002598/0.2573, allocations: 1.562 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003703/0.2577, allocations: 147.1 kB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.258, allocations: 0.6807 MB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.538e-05/0.258, allocations: 4.125 kB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.846e-05/0.258, allocations: 11.44 kB / 1.094 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.258, allocations: 0 / 1.094 GB, free: 10.37 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.2737, allocations: 1.597 MB / 1.096 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.346/7.62, allocations: 10.09 kB / 1.096 GB, free: 8.844 MB / 0.8575 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