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.001243/0.001243, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001294/0.001294, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.228/1.228, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.145/2.145, allocations: 390.2 MB / 0.6644 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 63.91 kB / 0.8122 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5214/0.5227, allocations: 140.4 MB / 0.9492 GB, free: 9.328 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.001483/0.5243, allocations: 0.6584 MB / 0.9499 GB, free: 8.82 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002065/0.5245, allocations: 85.52 kB / 0.95 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.14e-05/0.5245, allocations: 1.25 kB / 0.95 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.358e-05/0.5245, allocations: 0 / 0.95 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.452e-05/0.5246, allocations: 0 / 0.95 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.5247, allocations: 22.75 kB / 0.95 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.76e-05/0.5248, allocations: 8.094 kB / 0.95 GB, free: 8.738 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.438e-05/0.5248, allocations: 7.984 kB / 0.95 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.5248, allocations: 2.75 kB / 0.95 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.083e-05/0.5249, allocations: 2.625 kB / 0.95 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.408e-06/0.5249, allocations: 0 / 0.95 GB, free: 8.73 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.508e-05/0.525, allocations: 14.86 kB / 0.95 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.032e-05/0.525, allocations: 1.375 kB / 0.95 GB, free: 8.723 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.645e-05/0.525, allocations: 9.312 kB / 0.95 GB, free: 8.715 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.299e-05/0.5251, allocations: 17.47 kB / 0.9501 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.5251, allocations: 0 / 0.9501 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5251, allocations: 0 / 0.9501 GB, free: 8.703 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.938e-06/0.5251, allocations: 0 / 0.9501 GB, free: 8.703 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.0002108/0.5253, allocations: 322.4 kB / 0.9504 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.5253, allocations: 9.625 kB / 0.9504 GB, free: 8.344 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.157e-05/0.5254, allocations: 34.69 kB / 0.9504 GB, free: 8.301 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.5255, allocations: 10.42 kB / 0.9504 GB, free: 8.297 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 3.848e-05/0.5255, allocations: 164.4 kB / 0.9506 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.5256, allocations: 1.75 kB / 0.9506 GB, free: 8.098 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.053e-06/0.5256, allocations: 5.688 kB / 0.9506 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.4e-05/0.5257, allocations: 42.38 kB / 0.9506 GB, free: 8.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.5257, allocations: 5.312 kB / 0.9506 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-06/0.5257, allocations: 0 / 0.9506 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.5257, allocations: 0 / 0.9506 GB, free: 8.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.286e-05/0.5258, allocations: 16.23 kB / 0.9506 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.289e-05/0.5259, allocations: 160.4 kB / 0.9508 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001358/0.526, allocations: 44.25 kB / 0.9508 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.76e-05/0.5261, allocations: 14.34 kB / 0.9508 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.372e-05/0.5261, allocations: 0 / 0.9508 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.268e-05/0.5261, allocations: 31.94 kB / 0.9509 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 8.22e-07/0.5261, allocations: 0 / 0.9509 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000168/0.5263, allocations: 60.73 kB / 0.9509 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.864e-05/0.5263, allocations: 56.72 kB / 0.951 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.161e-05/0.5263, allocations: 93.86 kB / 0.9511 GB, free: 7.527 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.041e-06/0.5263, allocations: 25.7 kB / 0.9511 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.815e-06/0.5263, allocations: 80.14 kB / 0.9512 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.5264, allocations: 9.047 kB / 0.9512 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.5264, allocations: 16.47 kB / 0.9512 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.25e-05/0.5264, allocations: 318.8 kB / 0.9515 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.426e-05/0.5265, allocations: 4.125 kB / 0.9515 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.806e-05/0.5265, allocations: 12.11 kB / 0.9515 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.39e-05/0.5266, allocations: 21.11 kB / 0.9515 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5266, allocations: 1.375 kB / 0.9515 GB, free: 7.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.993e-05/0.5267, allocations: 50.05 kB / 0.9516 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 9.017e-06/0.5267, allocations: 4.125 kB / 0.9516 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.5267, allocations: 5.312 kB / 0.9516 GB, free: 7 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.837e-06/0.5267, allocations: 0 / 0.9516 GB, free: 7 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003569/0.5271, allocations: 43.31 kB / 0.9516 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008417/0.5279, allocations: 1.4 MB / 0.953 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.675e-05/0.528, allocations: 9.5 kB / 0.953 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.84e-06/0.528, allocations: 1.375 kB / 0.953 GB, free: 5.496 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 3.904e-05/0.528, allocations: 111.2 kB / 0.9531 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.955e-06/0.528, allocations: 1.375 kB / 0.9531 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.227e-05/0.5281, allocations: 15.75 kB / 0.9531 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.5281, allocations: 1.375 kB / 0.9531 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.22e-07/0.5281, allocations: 0 / 0.9531 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.5281, allocations: 3.984 kB / 0.9531 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.587e-05/0.5281, allocations: 160.3 kB / 0.9533 GB, free: 5.152 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.5281, allocations: 5.359 kB / 0.9533 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003342/0.5285, allocations: 42.56 kB / 0.9533 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.582e-06/0.5285, allocations: 1.281 kB / 0.9533 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.691e-06/0.5285, allocations: 0 / 0.9533 GB, free: 5.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007432/0.5292, allocations: 1.408 MB / 0.9547 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.5292, allocations: 0 / 0.9547 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.229e-05/0.5293, allocations: 75.42 kB / 0.9548 GB, free: 3.574 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.074e-05/0.5294, allocations: 84.95 kB / 0.9549 GB, free: 3.473 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.104e-06/0.5294, allocations: 5.406 kB / 0.9549 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.603e-05/0.5294, allocations: 1.375 kB / 0.9549 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.418e-05/0.5294, allocations: 9.188 kB / 0.9549 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.158e-06/0.5294, allocations: 5.266 kB / 0.9549 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.005e-05/0.5294, allocations: 75.28 kB / 0.955 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of sort global known variables: time 8e-08/0.5294, allocations: 0 / 0.955 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001818/0.5296, allocations: 4.156 kB / 0.955 GB, free: 3.383 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.0002231/0.5299, allocations: 0.6165 MB / 0.9556 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004192/0.5303, allocations: 60.7 kB / 0.9556 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.5303, allocations: 0 / 0.9556 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002176/0.5305, allocations: 43.19 kB / 0.9557 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000121/0.5306, allocations: 3.688 kB / 0.9557 GB, free: 2.723 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003/0.531, allocations: 126.5 kB / 0.9558 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.9e-05/0.531, allocations: 0.6767 MB / 0.9565 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.07e-05/0.5311, allocations: 1.531 kB / 0.9565 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.773e-05/0.5311, allocations: 13.97 kB / 0.9565 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5311, allocations: 0 / 0.9565 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01063/0.5417, allocations: 1.167 MB / 0.9576 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/0.5419, allocations: 242.8 kB / 0.9578 GB, free: 1.02 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.537/2.079, allocations: 1.031 kB / 0.9578 GB, free: 1.02 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