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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001416/0.001416, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001639/0.00164, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.306/1.306, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.399/2.399, allocations: 437 MB / 0.7099 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 59.89 kB / 0.8686 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5193/0.5206, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002556/0.5232, allocations: 1.511 MB / 1.018 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002834/0.5235, allocations: 100.6 kB / 1.018 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.631e-05/0.5235, allocations: 0 / 1.018 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.869e-05/0.5236, allocations: 0 / 1.018 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.267e-05/0.5236, allocations: 3.938 kB / 1.018 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.5238, allocations: 11.98 kB / 1.018 GB, free: 1.141 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.471e-05/0.5239, allocations: 23.92 kB / 1.018 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 7.452e-05/0.5239, allocations: 4 kB / 1.018 GB, free: 1.113 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.818e-05/0.524, allocations: 11.92 kB / 1.018 GB, free: 1.102 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.343e-05/0.524, allocations: 11.94 kB / 1.018 GB, free: 1.09 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.524, allocations: 4 kB / 1.018 GB, free: 1.086 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 5.383e-05/0.5241, allocations: 15.98 kB / 1.018 GB, free: 1.07 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.5241, allocations: 11.97 kB / 1.018 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.375e-05/0.5241, allocations: 7.938 kB / 1.018 GB, free: 1.051 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.638e-05/0.5242, allocations: 35.89 kB / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.5243, allocations: 0 / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of FrontEnd: time 7.92e-07/0.5243, allocations: 0 / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.417e-06/0.5243, allocations: 0 / 1.018 GB, free: 1.016 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.0004009/0.5247, allocations: 345.7 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.5247, allocations: 16.03 kB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.107e-05/0.5248, allocations: 30.75 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.5249, allocations: 12.92 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.491e-05/0.525, allocations: 164.3 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.525, allocations: 384 / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.5251, allocations: 4.375 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000179/0.5252, allocations: 62.16 kB / 1.019 GB, free: 300 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.5253, allocations: 3.938 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.5253, allocations: 8 kB / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.5253, allocations: 0 / 1.019 GB, free: 288 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.5255, allocations: 39.95 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003544/0.5259, allocations: 268.9 kB / 1.019 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.526, allocations: 54.48 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.5261, allocations: 28.89 kB / 1.019 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.599e-05/0.5262, allocations: 19.72 kB / 1.019 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.5262, allocations: 30.56 kB / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.5262, allocations: 0 / 1.019 GB, free: 15.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0003812/0.5266, allocations: 105.6 kB / 1.02 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.99e-05/0.5266, allocations: 51.41 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.97e-05/0.5267, allocations: 105.8 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.5267, allocations: 25.7 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.411e-05/0.5267, allocations: 84.14 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.5268, allocations: 3.906 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.532e-05/0.5268, allocations: 17.84 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.48e-05/0.5269, allocations: 318.8 kB / 1.02 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.527, allocations: 19.98 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.958e-05/0.5271, allocations: 27.91 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001765/0.5273, allocations: 52.88 kB / 1.02 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.5273, allocations: 4.188 kB / 1.02 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002244/0.5275, allocations: 81.64 kB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.5275, allocations: 4 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.5276, allocations: 4 kB / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.5276, allocations: 0 / 1.02 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.5277, allocations: 11.98 kB / 1.02 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.5277, allocations: 4.031 kB / 1.02 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.335e-05/0.5278, allocations: 11.98 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.5278, allocations: 0 / 1.02 GB, free: 14.8 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 6.328e-05/0.5278, allocations: 118.2 kB / 1.02 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.718e-05/0.5279, allocations: 7.906 kB / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.363e-05/0.5279, allocations: 3.531 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.5279, allocations: 0 / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.868e-06/0.5279, allocations: 0 / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.5279, allocations: 4 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.5281, allocations: 169.6 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5281, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.714e-05/0.5282, allocations: 11.98 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.5282, allocations: 3.984 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.5282, allocations: 3.984 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.5282, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.5282, allocations: 0 / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002589/0.5285, allocations: 179.4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.5285, allocations: 81.11 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.5285, allocations: 3.984 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.652e-05/0.5286, allocations: 4 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.153e-05/0.5287, allocations: 11.92 kB / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.077e-06/0.5287, allocations: 0 / 1.021 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.341e-05/0.5287, allocations: 91.25 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5287, allocations: 0 / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000208/0.5289, allocations: 4 kB / 1.021 GB, free: 14.02 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.0004698/0.5294, allocations: 0.7163 MB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002211/0.5296, allocations: 51.94 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.5296, allocations: 7.938 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 9.531e-05/0.5297, allocations: 19.98 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.53, allocations: 4 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004159/0.5304, allocations: 157 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/0.5306, allocations: 0.6809 MB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.051e-05/0.5307, allocations: 0 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.5307, allocations: 7.438 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of SimCode: time 2.1e-07/0.5307, allocations: 4 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4072/0.9379, allocations: 1.249 MB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000233/0.9382, allocations: 199.3 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/2.521, allocations: 3.938 kB / 1.024 GB, free: 10.87 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