Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.PowerLinearized,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="Buildings_10_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.001066/0.001066, allocations: 108 kB / 15.6 MB, free: 132 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.001056/0.001056, allocations: 194.5 kB / 16.53 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.313/1.313, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.474/2.474, allocations: 437.1 MB / 0.7104 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 75.88 kB / 0.8694 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7133/0.7147, allocations: 151.6 MB / 1.017 GB, free: 2.41 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.003086/0.7178, allocations: 1.44 MB / 1.019 GB, free: 0.9609 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002846/0.7181, allocations: 92.58 kB / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.619e-05/0.7182, allocations: 0 / 1.019 GB, free: 0.8672 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.151e-05/0.7182, allocations: 7.922 kB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.11e-05/0.7183, allocations: 0 / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002039/0.7185, allocations: 19.92 kB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.84e-05/0.7186, allocations: 27.86 kB / 1.019 GB, free: 0.8125 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.7187, allocations: 8 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.547e-05/0.7187, allocations: 7.938 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.224e-05/0.7188, allocations: 19.92 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.7188, allocations: 0 / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 6.309e-05/0.7189, allocations: 15.98 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.262e-05/0.7189, allocations: 7.984 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.7189, allocations: 11.92 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001043/0.7191, allocations: 31.91 kB / 1.019 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.7191, allocations: 4 kB / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7191, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.41e-06/0.7191, allocations: 0 / 1.019 GB, free: 0.707 MB / 0.7637 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.0004384/0.7195, allocations: 341.7 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.7196, allocations: 12.03 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.397e-05/0.7196, allocations: 34.73 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001688/0.7198, allocations: 16.83 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.7199, allocations: 172.3 kB / 1.02 GB, free: 48 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.303e-05/0.72, allocations: 4.375 kB / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.278e-06/0.72, allocations: 384 / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.7202, allocations: 66.16 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.7202, allocations: 11.92 kB / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.418e-06/0.7202, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.7202, allocations: 0 / 1.02 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.7205, allocations: 47.95 kB / 1.02 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003827/0.7208, allocations: 257 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001833/0.721, allocations: 58.48 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.7212, allocations: 36.83 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.7212, allocations: 3.984 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.7212, allocations: 30.56 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.7212, allocations: 0 / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0004171/0.7217, allocations: 109.5 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.7217, allocations: 51.41 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.772e-05/0.7218, allocations: 105.8 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.7218, allocations: 29.64 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.722e-05/0.7219, allocations: 80.14 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.7219, allocations: 12.03 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.7219, allocations: 13.72 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.7221, allocations: 314.8 kB / 1.021 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.7222, allocations: 27.92 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.8e-05/0.7223, allocations: 23.97 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002061/0.7225, allocations: 52.88 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.7225, allocations: 7.938 kB / 1.021 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002451/0.7228, allocations: 77.59 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.7228, allocations: 7.984 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.7228, allocations: 4 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.7228, allocations: 0 / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.7229, allocations: 16.02 kB / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.7229, allocations: 0 / 1.021 GB, free: 14.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.395e-05/0.723, allocations: 4 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.51e-06/0.723, allocations: 3.938 kB / 1.021 GB, free: 14.48 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 8.169e-05/0.7231, allocations: 118.9 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.689e-05/0.7231, allocations: 3.906 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.108e-05/0.7232, allocations: 7.531 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.7232, allocations: 0 / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.7232, allocations: 4 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-06/0.7232, allocations: 4 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001648/0.7234, allocations: 161.6 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.7234, allocations: 256 / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.7235, allocations: 11.98 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.7235, allocations: 4 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.984e-06/0.7235, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.7235, allocations: 0 / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.7235, allocations: 4 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002975/0.7238, allocations: 179.4 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.296e-05/0.7238, allocations: 81.11 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.7239, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.018e-05/0.724, allocations: 11.92 kB / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.724, allocations: 0 / 1.022 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.724, allocations: 4.031 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.15e-05/0.7241, allocations: 95.2 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7241, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002151/0.7243, allocations: 4 kB / 1.022 GB, free: 13.71 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.0005681/0.7249, allocations: 0.7123 MB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002654/0.7251, allocations: 55.89 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.7251, allocations: 0 / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.7253, allocations: 27.97 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002828/0.7256, allocations: 4.156 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005056/0.7261, allocations: 147.2 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.7263, allocations: 0.6768 MB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.302e-05/0.7264, allocations: 3.984 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.277e-05/0.7264, allocations: 19.38 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of SimCode: time 3.21e-07/0.7264, allocations: 0 / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01601/0.7425, allocations: 1.417 MB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.444/8.186, allocations: 10.28 kB / 1.025 GB, free: 10.61 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_PowerLinearized.fmu > Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches