Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.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.PowerLinearized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_PowerLinearized",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.007692/0.007692, allocations: 95.31 kB / 15.73 MB, free: 6.051 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.001741/0.001741, allocations: 201.4 kB / 16.68 MB, free: 5.973 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.388/1.388, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.331/2.331, allocations: 390.2 MB / 0.6648 GB, free: 164 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 64 kB / 0.9504 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2839/0.2852, allocations: 140.4 MB / 1.087 GB, free: 2.109 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002589/0.2878, allocations: 1.427 MB / 1.089 GB, free: 0.668 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0003255/0.2881, allocations: 100.6 kB / 1.089 GB, free: 0.5664 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.717e-05/0.2882, allocations: 0 / 1.089 GB, free: 0.5664 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 3.155e-05/0.2882, allocations: 3.938 kB / 1.089 GB, free: 0.5625 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.426e-05/0.2883, allocations: 7.938 kB / 1.089 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.2885, allocations: 15.97 kB / 1.089 GB, free: 0.5391 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.598e-05/0.2886, allocations: 23.92 kB / 1.089 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 9.155e-05/0.2887, allocations: 8 kB / 1.089 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.228e-05/0.2888, allocations: 7.938 kB / 1.089 GB, free: 0.5 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.137e-05/0.2888, allocations: 15.92 kB / 1.089 GB, free: 496 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.2888, allocations: 8 kB / 1.089 GB, free: 488 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.927e-05/0.2889, allocations: 15.98 kB / 1.089 GB, free: 472 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.415e-05/0.2889, allocations: 3.984 kB / 1.089 GB, free: 468 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.671e-05/0.2889, allocations: 19.86 kB / 1.089 GB, free: 448 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.2891, allocations: 32.12 kB / 1.089 GB, free: 416 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2891, allocations: 0 / 1.089 GB, free: 416 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2891, allocations: 0 / 1.089 GB, free: 416 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.2891, allocations: 0 / 1.089 GB, free: 416 kB / 0.8419 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.0004218/0.2895, allocations: 343.4 kB / 1.089 GB, free: 20 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.2896, allocations: 12.03 kB / 1.089 GB, free: 8 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.551e-05/0.2896, allocations: 34.73 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.2898, allocations: 12.92 kB / 1.09 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.2899, allocations: 172.3 kB / 1.09 GB, free: 15.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.2899, allocations: 4.312 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.2899, allocations: 4.359 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.2901, allocations: 58.22 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.2902, allocations: 3.938 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.2902, allocations: 4 kB / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.778e-06/0.2902, allocations: 0 / 1.09 GB, free: 15.67 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.2904, allocations: 47.95 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003597/0.2908, allocations: 257 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.291, allocations: 62.48 kB / 1.09 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.2911, allocations: 32.83 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.2911, allocations: 3.984 kB / 1.09 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.2911, allocations: 30.56 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.2911, allocations: 3.938 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004125/0.2916, allocations: 105.6 kB / 1.09 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.2916, allocations: 55.34 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.446e-05/0.2917, allocations: 105.8 kB / 1.09 GB, free: 14.88 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.2917, allocations: 25.7 kB / 1.09 GB, free: 14.85 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.787e-05/0.2917, allocations: 88.09 kB / 1.091 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.2918, allocations: 7.953 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.531e-05/0.2918, allocations: 13.84 kB / 1.091 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.736e-05/0.2919, allocations: 318.8 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.292, allocations: 19.98 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.771e-05/0.2921, allocations: 23.97 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.2923, allocations: 56.88 kB / 1.091 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2923, allocations: 3.938 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002452/0.2926, allocations: 73.66 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.2926, allocations: 11.94 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2926, allocations: 3.984 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.2926, allocations: 0 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.2927, allocations: 8 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.2927, allocations: 8.016 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.285e-05/0.2928, allocations: 7.938 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.2928, allocations: 3.938 kB / 1.091 GB, free: 14.18 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 6.844e-05/0.2929, allocations: 117.8 kB / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.2929, allocations: 0 / 1.091 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.706e-05/0.293, allocations: 11.53 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.293, allocations: 0 / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.293, allocations: 256 / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.293, allocations: 4 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001551/0.2931, allocations: 169.6 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.2932, allocations: 0 / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.95e-05/0.2932, allocations: 7.984 kB / 1.091 GB, free: 13.82 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.2932, allocations: 4 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.632e-06/0.2933, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2933, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2933, allocations: 0 / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.2936, allocations: 191.3 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.203e-05/0.2936, allocations: 77.11 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.2936, allocations: 3.938 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.394e-05/0.2937, allocations: 7.984 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.335e-05/0.2938, allocations: 4 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.797e-06/0.2938, allocations: 0 / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.387e-05/0.2938, allocations: 91.3 kB / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2938, allocations: 0 / 1.092 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002248/0.2941, allocations: 8 kB / 1.092 GB, free: 13.4 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.000497/0.2946, allocations: 0.7085 MB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002608/0.2948, allocations: 51.89 kB / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2948, allocations: 0 / 1.092 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.295, allocations: 27.97 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002759/0.2952, allocations: 1.25 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004422/0.2957, allocations: 163.3 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001954/0.2959, allocations: 0.6729 MB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.222e-05/0.2959, allocations: 3.984 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.038e-05/0.296, allocations: 15.44 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.296, allocations: 0 / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01515/0.3111, allocations: 1.458 MB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.36/7.671, allocations: 4 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized_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_PowerLinearized.fmu > Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches