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.001339/0.001338, allocations: 108 kB / 15.61 MB, free: 152 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.001726/0.001726, allocations: 195.6 kB / 16.53 MB, free: 6.699 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.452/1.452, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.515/2.515, allocations: 390.2 MB / 0.6647 GB, free: 448 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8908/0.892, allocations: 140.3 MB / 0.9496 GB, free: 9.449 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002842/0.8949, allocations: 1.44 MB / 0.951 GB, free: 8.312 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003447/0.8953, allocations: 91.98 kB / 0.9511 GB, free: 8.238 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.789e-05/0.8954, allocations: 4.719 kB / 0.9511 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.484e-05/0.8954, allocations: 1.812 kB / 0.9511 GB, free: 8.234 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.099e-05/0.8955, allocations: 7.938 kB / 0.9511 GB, free: 8.227 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.8957, allocations: 17.11 kB / 0.9511 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.883e-05/0.8958, allocations: 25.3 kB / 0.9511 GB, free: 8.199 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.8959, allocations: 3.594 kB / 0.9511 GB, free: 8.199 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.836e-05/0.896, allocations: 11.23 kB / 0.9511 GB, free: 8.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.201e-05/0.896, allocations: 15.05 kB / 0.9511 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.8961, allocations: 3.406 kB / 0.9511 GB, free: 8.18 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.475e-05/0.8961, allocations: 12.45 kB / 0.9512 GB, free: 8.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.674e-05/0.8961, allocations: 11.92 kB / 0.9512 GB, free: 8.164 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.816e-05/0.8962, allocations: 10.5 kB / 0.9512 GB, free: 8.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.8963, allocations: 28.75 kB / 0.9512 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.8963, allocations: 0 / 0.9512 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.884e-06/0.8963, allocations: 1.125 kB / 0.9512 GB, free: 8.137 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.8963, allocations: 0 / 0.9512 GB, free: 8.137 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.0004325/0.8968, allocations: 348 kB / 0.9515 GB, free: 7.762 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.8968, allocations: 14.42 kB / 0.9516 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.897, allocations: 16.77 kB / 0.9516 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001/0.8971, allocations: 170.4 kB / 0.9517 GB, free: 7.547 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.8971, allocations: 8.375 kB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.8972, allocations: 2.375 kB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001948/0.8974, allocations: 59.84 kB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.8974, allocations: 1.062 kB / 0.9518 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.8974, allocations: 7.938 kB / 0.9518 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.8974, allocations: 1.438 kB / 0.9518 GB, free: 7.48 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002134/0.8976, allocations: 45.48 kB / 0.9519 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003836/0.898, allocations: 262.9 kB / 0.9521 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001627/0.8982, allocations: 56.05 kB / 0.9522 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000106/0.8983, allocations: 30.02 kB / 0.9522 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.8983, allocations: 5.156 kB / 0.9522 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.683e-05/0.8983, allocations: 34.5 kB / 0.9522 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.8984, allocations: 1.375 kB / 0.9522 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004359/0.8988, allocations: 103 kB / 0.9523 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.8988, allocations: 52.53 kB / 0.9524 GB, free: 6.93 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.967e-05/0.8989, allocations: 110.1 kB / 0.9525 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.109e-05/0.8989, allocations: 25.7 kB / 0.9525 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.103e-05/0.899, allocations: 85.39 kB / 0.9526 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.899, allocations: 9.062 kB / 0.9526 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.186e-05/0.8991, allocations: 11.31 kB / 0.9526 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.8991, allocations: 320.5 kB / 0.9529 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001052/0.8992, allocations: 21.7 kB / 0.9529 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.739e-05/0.8993, allocations: 25.09 kB / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001909/0.8995, allocations: 54.81 kB / 0.953 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.8995, allocations: 0 / 0.953 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000229/0.8998, allocations: 83.5 kB / 0.9531 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.8998, allocations: 5.406 kB / 0.9531 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.8998, allocations: 5.141 kB / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.8998, allocations: 0 / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.8999, allocations: 7.219 kB / 0.9531 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.9, allocations: 3.984 kB / 0.9531 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.016e-05/0.9, allocations: 5.375 kB / 0.9531 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.9, allocations: 5.469 kB / 0.9531 GB, free: 6.238 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 (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.64e-05/0.9001, allocations: 122.9 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.9001, allocations: 1.5 kB / 0.9532 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.107e-05/0.9002, allocations: 4.844 kB / 0.9532 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.9002, allocations: 0 / 0.9532 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.9002, allocations: 9.391 kB / 0.9533 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.9002, allocations: 0 / 0.9533 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.9003, allocations: 167.8 kB / 0.9534 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.9004, allocations: 1.031 kB / 0.9534 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.491e-05/0.9004, allocations: 10.61 kB / 0.9534 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.9004, allocations: 5.312 kB / 0.9534 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.9005, allocations: 256 / 0.9534 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.9005, allocations: 4 kB / 0.9534 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.9005, allocations: 1.219 kB / 0.9534 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.9007, allocations: 178.2 kB / 0.9536 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.717e-05/0.9008, allocations: 82.7 kB / 0.9537 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.9008, allocations: 1.062 kB / 0.9537 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.718e-05/0.9009, allocations: 8.203 kB / 0.9537 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.544e-05/0.9009, allocations: 4.938 kB / 0.9537 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.697e-06/0.901, allocations: 1.094 kB / 0.9537 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.195e-05/0.901, allocations: 84.2 kB / 0.9538 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.243e-06/0.901, allocations: 0 / 0.9538 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002132/0.9012, allocations: 9.062 kB / 0.9538 GB, free: 5.527 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 (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.0001319/0.9014, allocations: 100.7 kB / 0.9539 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002693/0.9016, allocations: 48.42 kB / 0.9539 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.9016, allocations: 0 / 0.9539 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001114/0.9018, allocations: 28.03 kB / 0.954 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.9021, allocations: 13.28 kB / 0.954 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003652/0.9025, allocations: 128.5 kB / 0.9541 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.9026, allocations: 0.6822 MB / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.164e-05/0.9026, allocations: 0 / 0.9548 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.721e-05/0.9027, allocations: 12.83 kB / 0.9548 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.9027, allocations: 4 kB / 0.9548 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of Templates: time 0.002699/0.9054, allocations: 0.5734 MB / 0.9553 GB, free: 4.266 MB / 0.7169 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches