Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_11_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.005995/0.005995, allocations: 97.06 kB / 15.73 MB, free: 6.484 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.001291/0.001291, allocations: 192 kB / 16.67 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.818/2.818, allocations: 469.8 MB / 0.7425 GB, free: 7.336 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 63.84 kB / 1.065 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3541/0.3555, allocations: 159.1 MB / 1.221 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002799/0.3583, allocations: 1.459 MB / 1.222 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003303/0.3586, allocations: 83.75 kB / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.808e-05/0.3587, allocations: 0 / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.703e-05/0.3587, allocations: 0 / 1.222 GB, free: 12.27 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.894e-05/0.3588, allocations: 7.938 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.359, allocations: 23.92 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 9.732e-05/0.3591, allocations: 19.98 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.3592, allocations: 7.984 kB / 1.222 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.444e-05/0.3593, allocations: 15.92 kB / 1.222 GB, free: 12.2 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.59e-05/0.3593, allocations: 11.86 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.3593, allocations: 4 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.171e-05/0.3594, allocations: 15.98 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.732e-05/0.3594, allocations: 4 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.084e-05/0.3594, allocations: 11.94 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001347/0.3596, allocations: 31.89 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.3596, allocations: 4 kB / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3596, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.3596, allocations: 0 / 1.222 GB, free: 12.11 MB / 0.9825 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.0004847/0.3601, allocations: 347.3 kB / 1.223 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.3601, allocations: 12.03 kB / 1.223 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001714/0.3603, allocations: 8.922 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.3604, allocations: 180.2 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.384e-05/0.3604, allocations: 384 / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.3604, allocations: 4.375 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001857/0.3606, allocations: 54.23 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.834e-06/0.3606, allocations: 192 / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.3606, allocations: 3.938 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.3607, allocations: 4 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.3609, allocations: 51.88 kB / 1.223 GB, free: 11.37 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003977/0.3613, allocations: 261 kB / 1.223 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.3614, allocations: 58.47 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.3615, allocations: 24.91 kB / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.3616, allocations: 0 / 1.223 GB, free: 10.97 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.008e-05/0.3616, allocations: 38.5 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.3616, allocations: 3.938 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0004127/0.362, allocations: 101.6 kB / 1.223 GB, free: 10.81 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.362, allocations: 51.41 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.814e-05/0.3621, allocations: 114 kB / 1.224 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.3621, allocations: 25.7 kB / 1.224 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.774e-05/0.3622, allocations: 92.08 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.292e-05/0.3622, allocations: 7.938 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-05/0.3622, allocations: 9.719 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.777e-05/0.3623, allocations: 314.8 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.3624, allocations: 23.97 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.27e-05/0.3625, allocations: 23.98 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.3627, allocations: 60.73 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3627, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002341/0.363, allocations: 85.55 kB / 1.224 GB, free: 9.965 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.363, allocations: 8.094 kB / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.363, allocations: 0 / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.363, allocations: 0 / 1.224 GB, free: 9.957 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.3631, allocations: 11.98 kB / 1.224 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.3631, allocations: 0 / 1.224 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.611e-05/0.3632, allocations: 7.984 kB / 1.224 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.147e-05/0.3632, allocations: 4 kB / 1.224 GB, free: 9.934 MB / 0.9825 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 8.737e-05/0.3633, allocations: 109.8 kB / 1.224 GB, free: 9.816 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.699e-05/0.3633, allocations: 8 kB / 1.224 GB, free: 9.809 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.139e-05/0.3633, allocations: 7.531 kB / 1.224 GB, free: 9.797 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3633, allocations: 3.984 kB / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3633, allocations: 0 / 1.224 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3633, allocations: 7.922 kB / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001588/0.3635, allocations: 165.6 kB / 1.224 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3635, allocations: 0 / 1.224 GB, free: 9.574 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.556e-05/0.3636, allocations: 15.98 kB / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.215e-06/0.3636, allocations: 0 / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.3636, allocations: 0 / 1.224 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3636, allocations: 4 kB / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3636, allocations: 0 / 1.224 GB, free: 9.555 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.3639, allocations: 175.4 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.458e-05/0.3639, allocations: 81.06 kB / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.3639, allocations: 0 / 1.225 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.529e-05/0.364, allocations: 16.02 kB / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-05/0.3641, allocations: 0 / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-06/0.3641, allocations: 0 / 1.225 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.801e-05/0.3641, allocations: 87.53 kB / 1.225 GB, free: 9.168 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3641, allocations: 3.938 kB / 1.225 GB, free: 9.164 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002202/0.3643, allocations: 11.94 kB / 1.225 GB, free: 9.152 MB / 0.9825 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.0001301/0.3645, allocations: 107.2 kB / 1.225 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002817/0.3648, allocations: 51.95 kB / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3648, allocations: 0 / 1.225 GB, free: 8.988 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.3649, allocations: 27.97 kB / 1.225 GB, free: 8.961 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.3651, allocations: 7.875 kB / 1.225 GB, free: 8.953 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003565/0.3655, allocations: 133.5 kB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002113/0.3657, allocations: 0.6768 MB / 1.226 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.109e-05/0.3657, allocations: 7.938 kB / 1.226 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.093e-05/0.3658, allocations: 7.438 kB / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of SimCode: time 3.41e-07/0.3658, allocations: 0 / 1.226 GB, free: 8.078 MB / 0.9825 GB Notification: Performance of Templates: time 0.00264/0.3684, allocations: 0.5757 MB / 1.226 GB, free: 7.508 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches