Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_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.001217/0.001217, 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.001247/0.001247, allocations: 195.2 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.216/1.216, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.094/2.094, allocations: 390.2 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 59.91 kB / 0.8127 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5057/0.5068, allocations: 140.4 MB / 0.9497 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.001479/0.5083, allocations: 0.5891 MB / 0.9503 GB, free: 8.777 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002159/0.5086, allocations: 89.72 kB / 0.9504 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.595e-05/0.5086, allocations: 0 / 0.9504 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.147e-06/0.5086, allocations: 0 / 0.9504 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.781e-05/0.5086, allocations: 1.375 kB / 0.9504 GB, free: 8.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001692/0.5088, allocations: 17.42 kB / 0.9504 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.006e-05/0.5089, allocations: 8.062 kB / 0.9504 GB, free: 8.695 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.322e-05/0.5089, allocations: 9.359 kB / 0.9504 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.545e-05/0.5089, allocations: 2.75 kB / 0.9504 GB, free: 8.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.689e-05/0.509, allocations: 5.375 kB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.111e-05/0.509, allocations: 1.375 kB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.691e-05/0.5091, allocations: 14.86 kB / 0.9504 GB, free: 8.676 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.11e-05/0.5091, allocations: 7.984 kB / 0.9505 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.726e-05/0.5091, allocations: 5.312 kB / 0.9505 GB, free: 8.664 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.27e-05/0.5092, allocations: 13.42 kB / 0.9505 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.5092, allocations: 0 / 0.9505 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5092, allocations: 1.375 kB / 0.9505 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.827e-06/0.5092, allocations: 0 / 0.9505 GB, free: 8.656 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.0002131/0.5094, allocations: 321 kB / 0.9508 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.5094, allocations: 9.625 kB / 0.9508 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.85e-05/0.5095, allocations: 32.12 kB / 0.9508 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.5096, allocations: 9.047 kB / 0.9508 GB, free: 8.254 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.926e-05/0.5096, allocations: 164.4 kB / 0.951 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.664e-05/0.5097, allocations: 1.75 kB / 0.951 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-06/0.5097, allocations: 5.75 kB / 0.951 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.701e-05/0.5098, allocations: 43.69 kB / 0.951 GB, free: 8.008 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.5098, allocations: 3.938 kB / 0.951 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.783e-06/0.5098, allocations: 0 / 0.951 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.5098, allocations: 1.375 kB / 0.951 GB, free: 8.004 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.181e-05/0.5099, allocations: 14.86 kB / 0.9511 GB, free: 7.996 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.689e-05/0.51, allocations: 156.4 kB / 0.9512 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001323/0.5101, allocations: 45.67 kB / 0.9512 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.8e-05/0.5102, allocations: 12.97 kB / 0.9513 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.5102, allocations: 5.312 kB / 0.9513 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.234e-05/0.5102, allocations: 34.56 kB / 0.9513 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.5102, allocations: 0 / 0.9513 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0001694/0.5104, allocations: 58.11 kB / 0.9514 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.817e-05/0.5104, allocations: 55.34 kB / 0.9514 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.183e-05/0.5104, allocations: 93.86 kB / 0.9515 GB, free: 7.484 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.761e-06/0.5104, allocations: 27.08 kB / 0.9515 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.434e-06/0.5104, allocations: 80.14 kB / 0.9516 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.687e-05/0.5105, allocations: 7.531 kB / 0.9516 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.53e-05/0.5105, allocations: 16.47 kB / 0.9516 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.222e-05/0.5105, allocations: 316.2 kB / 0.9519 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.445e-05/0.5106, allocations: 2.75 kB / 0.9519 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.973e-05/0.5106, allocations: 20.05 kB / 0.9519 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.481e-05/0.5107, allocations: 18.3 kB / 0.952 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.5107, allocations: 0 / 0.952 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.907e-05/0.5108, allocations: 50.33 kB / 0.952 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.909e-06/0.5108, allocations: 4.5 kB / 0.952 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.5108, allocations: 4.875 kB / 0.952 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.5108, allocations: 0 / 0.952 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.5112, allocations: 44.03 kB / 0.9521 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00084/0.512, allocations: 1.4 MB / 0.9534 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.542e-05/0.512, allocations: 5.312 kB / 0.9534 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.979e-06/0.5121, allocations: 5.062 kB / 0.9534 GB, free: 5.453 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 4.033e-05/0.5121, allocations: 120.6 kB / 0.9536 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-06/0.5121, allocations: 1.688 kB / 0.9536 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.149e-05/0.5121, allocations: 7.5 kB / 0.9536 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.5121, allocations: 336 / 0.9536 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.82e-07/0.5121, allocations: 1.312 kB / 0.9536 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-06/0.5121, allocations: 0 / 0.9536 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.846e-05/0.5122, allocations: 172.1 kB / 0.9537 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-06/0.5122, allocations: 1.406 kB / 0.9537 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.5125, allocations: 46.72 kB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.5126, allocations: 1.219 kB / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.209e-06/0.5126, allocations: 0 / 0.9538 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00073/0.5133, allocations: 1.403 MB / 0.9551 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5133, allocations: 7.922 kB / 0.9552 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.257e-05/0.5134, allocations: 75.33 kB / 0.9552 GB, free: 3.52 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.134e-05/0.5134, allocations: 82.45 kB / 0.9553 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-06/0.5134, allocations: 3.938 kB / 0.9553 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.641e-05/0.5135, allocations: 9.406 kB / 0.9553 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.328e-05/0.5135, allocations: 9.359 kB / 0.9553 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.106e-06/0.5135, allocations: 1.062 kB / 0.9553 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 9.257e-06/0.5135, allocations: 75.28 kB / 0.9554 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.5135, allocations: 0 / 0.9554 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001771/0.5137, allocations: 8.062 kB / 0.9554 GB, free: 3.324 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002319/0.5139, allocations: 0.613 MB / 0.956 GB, free: 2.715 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004216/0.5144, allocations: 64.52 kB / 0.9561 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.5144, allocations: 0 / 0.9561 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002239/0.5146, allocations: 39.39 kB / 0.9561 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001174/0.5147, allocations: 6.719 kB / 0.9561 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002901/0.515, allocations: 127.1 kB / 0.9562 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.542e-05/0.5151, allocations: 0.6714 MB / 0.9569 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.77e-05/0.5151, allocations: 2.938 kB / 0.9569 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.402e-05/0.5152, allocations: 8.719 kB / 0.9569 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5152, allocations: 0 / 0.9569 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.5418, allocations: 1.245 MB / 0.9581 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.85, allocations: 1.797 kB / 0.9581 GB, free: 1.105 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_PowerLinearized.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches