Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009291/0.0009291, allocations: 98.8 kB / 16.02 MB, free: 76 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.001238/0.001238, allocations: 187.8 kB / 16.92 MB, free: 6.75 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.444/1.444, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.677/2.677, allocations: 443.2 MB / 0.7181 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003884/0.0003884, allocations: 22.14 kB / 0.8801 GB, free: 42.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.327, allocations: 155.1 MB / 1.032 GB, free: 4.863 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.001563/0.3286, allocations: 1.175 MB / 1.033 GB, free: 3.68 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002677/0.3288, allocations: 92.59 kB / 1.033 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.933e-05/0.3289, allocations: 0 / 1.033 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.262e-05/0.3289, allocations: 0 / 1.033 GB, free: 3.586 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.218e-05/0.3289, allocations: 7.938 kB / 1.033 GB, free: 3.578 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001408/0.3291, allocations: 7.984 kB / 1.033 GB, free: 3.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.481e-05/0.3292, allocations: 27.92 kB / 1.033 GB, free: 3.543 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 8.301e-05/0.3292, allocations: 4 kB / 1.033 GB, free: 3.539 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.021e-05/0.3293, allocations: 11.94 kB / 1.033 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 3.446e-05/0.3293, allocations: 3.984 kB / 1.033 GB, free: 3.523 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.3294, allocations: 11.94 kB / 1.033 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.3294, allocations: 15.98 kB / 1.033 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.489e-05/0.3294, allocations: 7.922 kB / 1.033 GB, free: 3.488 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.3295, allocations: 37.62 kB / 1.033 GB, free: 3.445 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.195e-05/0.3296, allocations: 19.97 kB / 1.033 GB, free: 3.426 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3296, allocations: 0 / 1.033 GB, free: 3.426 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.663e-06/0.3296, allocations: 0 / 1.033 GB, free: 3.426 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.967e-06/0.3296, allocations: 0 / 1.033 GB, free: 3.426 MB / 0.7794 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.0003972/0.33, allocations: 347.7 kB / 1.033 GB, free: 3.035 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.33, allocations: 12.03 kB / 1.033 GB, free: 3.023 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.3302, allocations: 16.83 kB / 1.033 GB, free: 3.008 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001119/0.3303, allocations: 172.4 kB / 1.034 GB, free: 2.801 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.3303, allocations: 4.375 kB / 1.034 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.3304, allocations: 384 / 1.034 GB, free: 2.797 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000194/0.3306, allocations: 70.17 kB / 1.034 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.3306, allocations: 192 / 1.034 GB, free: 2.723 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.113e-05/0.3306, allocations: 3.938 kB / 1.034 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.3306, allocations: 0 / 1.034 GB, free: 2.719 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002275/0.3308, allocations: 67.94 kB / 1.034 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000359/0.3312, allocations: 257 kB / 1.034 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001889/0.3314, allocations: 78.81 kB / 1.034 GB, free: 2.266 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000117/0.3315, allocations: 32.91 kB / 1.034 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.3315, allocations: 0 / 1.034 GB, free: 2.23 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.3316, allocations: 34.56 kB / 1.034 GB, free: 2.188 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.3316, allocations: 0 / 1.034 GB, free: 2.188 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0004566/0.332, allocations: 133.6 kB / 1.034 GB, free: 2.051 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.3321, allocations: 51.41 kB / 1.034 GB, free: 1.988 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.222e-05/0.3322, allocations: 105.8 kB / 1.034 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.3322, allocations: 25.7 kB / 1.034 GB, free: 1.844 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.292e-05/0.3322, allocations: 84.08 kB / 1.034 GB, free: 1.758 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.3323, allocations: 19.81 kB / 1.034 GB, free: 1.738 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.403e-05/0.3323, allocations: 17.69 kB / 1.034 GB, free: 1.715 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.993e-05/0.3324, allocations: 314.8 kB / 1.035 GB, free: 1.398 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.3325, allocations: 31.97 kB / 1.035 GB, free: 1.367 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.3326, allocations: 31.98 kB / 1.035 GB, free: 1.336 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002051/0.3328, allocations: 60.81 kB / 1.035 GB, free: 1.273 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.3328, allocations: 4.062 kB / 1.035 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002536/0.3331, allocations: 97.58 kB / 1.035 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.3331, allocations: 4 kB / 1.035 GB, free: 1.164 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.3331, allocations: 4.031 kB / 1.035 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.3331, allocations: 0 / 1.035 GB, free: 1.16 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.3333, allocations: 15.98 kB / 1.035 GB, free: 1.145 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.529e-06/0.3333, allocations: 7.875 kB / 1.035 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.468e-05/0.3333, allocations: 11.98 kB / 1.035 GB, free: 1.125 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.3334, allocations: 8 kB / 1.035 GB, free: 1.117 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 7.441e-05/0.3334, allocations: 119.3 kB / 1.035 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.341e-05/0.3335, allocations: 0 / 1.035 GB, free: 0.9922 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.7e-05/0.3335, allocations: 7.531 kB / 1.035 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.3335, allocations: 0 / 1.035 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3335, allocations: 0 / 1.035 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3335, allocations: 0 / 1.035 GB, free: 0.9844 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.3337, allocations: 173.6 kB / 1.035 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3337, allocations: 0 / 1.035 GB, free: 0.7656 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.898e-05/0.3338, allocations: 11.98 kB / 1.035 GB, free: 0.7539 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3338, allocations: 8 kB / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-06/0.3338, allocations: 0 / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3338, allocations: 0 / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3338, allocations: 256 / 1.035 GB, free: 0.7461 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002891/0.3341, allocations: 195.3 kB / 1.036 GB, free: 0.5391 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.168e-05/0.3341, allocations: 85.09 kB / 1.036 GB, free: 448 kB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.3342, allocations: 8 kB / 1.036 GB, free: 440 kB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.404e-05/0.3343, allocations: 11.98 kB / 1.036 GB, free: 428 kB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.983e-05/0.3343, allocations: 0 / 1.036 GB, free: 428 kB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-06/0.3343, allocations: 4.031 kB / 1.036 GB, free: 424 kB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.792e-05/0.3343, allocations: 79.28 kB / 1.036 GB, free: 344 kB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3344, allocations: 3.938 kB / 1.036 GB, free: 340 kB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002183/0.3346, allocations: 12 kB / 1.036 GB, free: 328 kB / 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.0001085/0.3347, allocations: 99.23 kB / 1.036 GB, free: 216 kB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002725/0.335, allocations: 63.95 kB / 1.036 GB, free: 152 kB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.335, allocations: 0 / 1.036 GB, free: 152 kB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001193/0.3351, allocations: 35.97 kB / 1.036 GB, free: 116 kB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.3354, allocations: 8.062 kB / 1.036 GB, free: 108 kB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003607/0.3358, allocations: 158.3 kB / 1.036 GB, free: 15.92 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.336, allocations: 0.677 MB / 1.037 GB, free: 15.22 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.698e-05/0.336, allocations: 11.44 kB / 1.037 GB, free: 15.21 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.336, allocations: 0 / 1.037 GB, free: 15.21 MB / 0.795 GB Notification: Performance of Templates: time 0.002042/0.3381, allocations: 0.615 MB / 1.037 GB, free: 14.59 MB / 0.795 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches