Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|powerLinearized.y",fileNamePrefix="Buildings_9_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.001682/0.001682, allocations: 102.7 kB / 16.4 MB, free: 6.461 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.001937/0.001937, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.507/1.507, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.331/2.331, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001554, allocations: 71.84 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.976/0.9776, allocations: 140.4 MB / 1.089 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.003285/0.9809, allocations: 1.432 MB / 1.09 GB, free: 4.535 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003614/0.9813, allocations: 94.12 kB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.011e-05/0.9814, allocations: 1.125 kB / 1.09 GB, free: 4.473 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.998e-05/0.9814, allocations: 3.938 kB / 1.09 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.895e-05/0.9815, allocations: 4.734 kB / 1.09 GB, free: 4.465 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000275/0.9818, allocations: 13.88 kB / 1.09 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.9819, allocations: 29.47 kB / 1.09 GB, free: 4.445 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.9821, allocations: 13.23 kB / 1.09 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.372e-05/0.9821, allocations: 9.25 kB / 1.09 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.302e-05/0.9822, allocations: 14.5 kB / 1.09 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.9822, allocations: 1.906 kB / 1.09 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.033e-05/0.9823, allocations: 17.31 kB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.53e-05/0.9823, allocations: 1.125 kB / 1.09 GB, free: 4.422 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.877e-05/0.9823, allocations: 10.94 kB / 1.09 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.9825, allocations: 35.53 kB / 1.09 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.9825, allocations: 3.938 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.244e-06/0.9825, allocations: 0.75 kB / 1.09 GB, free: 4.395 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.9825, allocations: 0 / 1.09 GB, free: 4.395 MB / 0.8575 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.0004101/0.9829, allocations: 350.4 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.983, allocations: 9.75 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001715/0.9831, allocations: 12.64 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.849e-05/0.9832, allocations: 171.9 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.396e-05/0.9833, allocations: 1.062 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.415e-05/0.9833, allocations: 1.781 kB / 1.091 GB, free: 3.824 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002043/0.9835, allocations: 72.84 kB / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.9835, allocations: 192 / 1.091 GB, free: 3.773 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.258e-05/0.9835, allocations: 4.75 kB / 1.091 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.9835, allocations: 0 / 1.091 GB, free: 3.77 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002185/0.9838, allocations: 44 kB / 1.091 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003731/0.9841, allocations: 261.6 kB / 1.091 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.9843, allocations: 59.66 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001154/0.9845, allocations: 29.83 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.9845, allocations: 0 / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.9845, allocations: 35.66 kB / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 7.61e-07/0.9845, allocations: 0 / 1.091 GB, free: 3.395 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0004267/0.9849, allocations: 105.1 kB / 1.091 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.682e-05/0.985, allocations: 57 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.446e-05/0.9851, allocations: 104.5 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.9851, allocations: 25.7 kB / 1.092 GB, free: 3.148 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.049e-05/0.9851, allocations: 86.03 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.933e-05/0.9851, allocations: 11.69 kB / 1.092 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.9852, allocations: 12.8 kB / 1.092 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.266e-05/0.9852, allocations: 317.1 kB / 1.092 GB, free: 2.723 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.9854, allocations: 23.55 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.872e-05/0.9855, allocations: 23.89 kB / 1.092 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002013/0.9857, allocations: 51.89 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.9857, allocations: 0 / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002525/0.9859, allocations: 85.81 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.986, allocations: 6.344 kB / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.986, allocations: 0 / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.986, allocations: 0 / 1.092 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.9861, allocations: 15.64 kB / 1.092 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.9861, allocations: 0.7031 kB / 1.092 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.996e-05/0.9862, allocations: 8.719 kB / 1.092 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.9862, allocations: 0 / 1.092 GB, free: 2.648 MB / 0.8575 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.306e-05/0.9863, allocations: 116.2 kB / 1.092 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.53e-05/0.9863, allocations: 6.797 kB / 1.092 GB, free: 2.523 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.432e-05/0.9863, allocations: 9.25 kB / 1.092 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.9863, allocations: 0 / 1.092 GB, free: 2.512 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.9864, allocations: 5.5 kB / 1.092 GB, free: 2.508 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.9864, allocations: 3.938 kB / 1.092 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.9865, allocations: 168.9 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.9865, allocations: 0.7969 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.662e-05/0.9866, allocations: 11.33 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.9866, allocations: 0 / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.667e-06/0.9866, allocations: 0.7969 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.9866, allocations: 1.25 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.9866, allocations: 0 / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002683/0.9869, allocations: 182.2 kB / 1.093 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.618e-05/0.9869, allocations: 78.5 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.678e-05/0.987, allocations: 1.719 kB / 1.093 GB, free: 2.062 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.653e-05/0.987, allocations: 11.42 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.9871, allocations: 2.625 kB / 1.093 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.229e-06/0.9871, allocations: 9.094 kB / 1.093 GB, free: 2.051 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.874e-05/0.9871, allocations: 81.25 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9871, allocations: 1.188 kB / 1.093 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002092/0.9874, allocations: 8.812 kB / 1.093 GB, free: 1.973 MB / 0.8575 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.0001071/0.9875, allocations: 101.2 kB / 1.093 GB, free: 1.883 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002641/0.9877, allocations: 45.84 kB / 1.093 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.9877, allocations: 8.062 kB / 1.093 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.9879, allocations: 27.48 kB / 1.093 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.9882, allocations: 9.531 kB / 1.093 GB, free: 1.859 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003689/0.9885, allocations: 147.8 kB / 1.093 GB, free: 1.719 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.9887, allocations: 0.6776 MB / 1.094 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.9887, allocations: 12.84 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of SimCode: time 3.01e-07/0.9887, allocations: 0 / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of Templates: time 0.002393/0.9911, allocations: 0.6363 MB / 1.094 GB, free: 0.9688 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches