Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,fileNamePrefix="Buildings_10_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.001844/0.001844, 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.002182/0.002182, allocations: 192.7 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.275/1.275, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.411/2.411, allocations: 437 MB / 0.7104 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 63.89 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5055/0.5068, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.001957/0.5088, allocations: 0.5804 MB / 1.018 GB, free: 1.891 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0003019/0.5091, allocations: 95.66 kB / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.79e-05/0.5092, allocations: 0 / 1.018 GB, free: 1.797 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.387e-05/0.5092, allocations: 7.875 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.646e-05/0.5093, allocations: 3.984 kB / 1.018 GB, free: 1.785 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002242/0.5095, allocations: 19.98 kB / 1.018 GB, free: 1.766 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.825e-05/0.5096, allocations: 4 kB / 1.018 GB, free: 1.762 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.792e-05/0.5096, allocations: 4 kB / 1.018 GB, free: 1.758 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.73e-05/0.5096, allocations: 4 kB / 1.018 GB, free: 1.754 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 6.113e-05/0.5097, allocations: 7.984 kB / 1.018 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.076e-05/0.5097, allocations: 0 / 1.018 GB, free: 1.746 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.819e-05/0.5098, allocations: 15.98 kB / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.287e-05/0.5098, allocations: 0 / 1.018 GB, free: 1.73 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.178e-05/0.5098, allocations: 11.86 kB / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.433e-05/0.5099, allocations: 11.98 kB / 1.018 GB, free: 1.707 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.5099, allocations: 4 kB / 1.018 GB, free: 1.703 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.232e-06/0.5099, allocations: 4 kB / 1.018 GB, free: 1.699 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.418e-06/0.5099, allocations: 0 / 1.018 GB, free: 1.699 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.0003274/0.5103, allocations: 315.6 kB / 1.018 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.5103, allocations: 12.03 kB / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.072e-05/0.5103, allocations: 30.75 kB / 1.019 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001476/0.5105, allocations: 12.83 kB / 1.019 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.839e-05/0.5106, allocations: 164.4 kB / 1.019 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.5106, allocations: 384 / 1.019 GB, free: 1.078 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.077e-06/0.5106, allocations: 8.375 kB / 1.019 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.5107, allocations: 34.25 kB / 1.019 GB, free: 1.031 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.5108, allocations: 3.938 kB / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.394e-06/0.5108, allocations: 3.938 kB / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.5108, allocations: 0 / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.114e-05/0.5109, allocations: 19.92 kB / 1.019 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.511, allocations: 153.7 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.5112, allocations: 46.66 kB / 1.019 GB, free: 0.75 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.369e-05/0.5112, allocations: 8.859 kB / 1.019 GB, free: 0.7383 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.5113, allocations: 7.984 kB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.5113, allocations: 30.56 kB / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.5113, allocations: 0 / 1.019 GB, free: 0.6914 MB / 0.7637 GB Notification: Performance of matching and sorting (n=3): time 0.0002011/0.5115, allocations: 61.55 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.5115, allocations: 55.41 kB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.754e-05/0.5116, allocations: 89.86 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.108e-05/0.5116, allocations: 25.7 kB / 1.019 GB, free: 440 kB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.245e-05/0.5116, allocations: 80.14 kB / 1.019 GB, free: 356 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.5117, allocations: 14.16 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.339e-05/0.5117, allocations: 17.7 kB / 1.019 GB, free: 320 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.5118, allocations: 310.8 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.588e-05/0.5119, allocations: 12.08 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.372e-05/0.5119, allocations: 11.92 kB / 1.02 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.307e-05/0.512, allocations: 21.12 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.512, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001127/0.5121, allocations: 53.61 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.5122, allocations: 4 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.026e-06/0.5122, allocations: 7.938 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.5122, allocations: 4 kB / 1.02 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/0.5126, allocations: 47.92 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.5139, allocations: 1.4 MB / 1.021 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.185e-05/0.514, allocations: 8.016 kB / 1.021 GB, free: 14.28 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.07e-06/0.514, allocations: 0 / 1.021 GB, free: 14.28 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 (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 6.871e-05/0.514, allocations: 113.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.076e-05/0.5141, allocations: 4 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.461e-05/0.5141, allocations: 3.5 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.5141, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-06/0.5141, allocations: 4.062 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.5141, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.5142, allocations: 165.5 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-06/0.5142, allocations: 3.938 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/0.5146, allocations: 47.92 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.5146, allocations: 0 / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-06/0.5146, allocations: 4 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001129/0.5157, allocations: 1.397 MB / 1.023 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.5158, allocations: 7.984 kB / 1.023 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001188/0.5159, allocations: 81.12 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.5159, allocations: 85.11 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.246e-06/0.5159, allocations: 3.938 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.005e-05/0.516, allocations: 7.984 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.671e-05/0.516, allocations: 0 / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.516, allocations: 4 kB / 1.023 GB, free: 12.12 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.546e-05/0.516, allocations: 75.28 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.516, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001913/0.5162, allocations: 4 kB / 1.023 GB, free: 12.04 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 (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.0004556/0.5167, allocations: 0.6085 MB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004622/0.5172, allocations: 67.84 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5172, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.5174, allocations: 35.95 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001334/0.5176, allocations: 9.875 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004692/0.518, allocations: 128.6 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002375/0.5183, allocations: 0.6729 MB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.458e-05/0.5183, allocations: 4 kB / 1.025 GB, free: 10.43 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.501e-05/0.5184, allocations: 15.36 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of SimCode: time 3.005e-06/0.5184, allocations: 4 kB / 1.025 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01716/0.5356, allocations: 1.237 MB / 1.026 GB, free: 9.285 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/12.06, allocations: 11.42 kB / 1.026 GB, free: 9.277 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_PowerLinearized_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_PowerLinearized.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches