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.001738/0.001738, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.002823/0.002823, allocations: 196.9 kB / 16.14 MB, free: 6.715 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.474/1.474, allocations: 222.9 MB / 239.8 MB, free: 4.629 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.442/2.442, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.91 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7913/0.7925, allocations: 140.4 MB / 0.9489 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002854/0.7954, allocations: 1.504 MB / 0.9504 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003301/0.7958, allocations: 86.66 kB / 0.9505 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.123e-05/0.7958, allocations: 0 / 0.9505 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.349e-05/0.7959, allocations: 3.938 kB / 0.9505 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.868e-05/0.7959, allocations: 1.375 kB / 0.9505 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.7962, allocations: 14.72 kB / 0.9505 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.889e-05/0.7963, allocations: 30.86 kB / 0.9505 GB, free: 7.828 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.7964, allocations: 6.75 kB / 0.9505 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.913e-05/0.7965, allocations: 12.06 kB / 0.9505 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.402e-05/0.7966, allocations: 10.73 kB / 0.9505 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.426e-05/0.7966, allocations: 5.312 kB / 0.9505 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.675e-05/0.7967, allocations: 12.23 kB / 0.9506 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.682e-05/0.7967, allocations: 7.984 kB / 0.9506 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.438e-05/0.7968, allocations: 6.688 kB / 0.9506 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001773/0.797, allocations: 32.14 kB / 0.9506 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.797, allocations: 0 / 0.9506 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.084e-06/0.797, allocations: 1.375 kB / 0.9506 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.784e-06/0.797, allocations: 4 kB / 0.9506 GB, free: 7.762 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.0005599/0.7976, allocations: 348.1 kB / 0.9509 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.7976, allocations: 12.94 kB / 0.9509 GB, free: 7.383 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.7978, allocations: 16.77 kB / 0.951 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.288e-05/0.7979, allocations: 166.5 kB / 0.9511 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.7979, allocations: 384 / 0.9511 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.798, allocations: 1.562 kB / 0.9511 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.7982, allocations: 65.78 kB / 0.9512 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.7982, allocations: 1.938 kB / 0.9512 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.7982, allocations: 3.938 kB / 0.9512 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.7982, allocations: 0 / 0.9512 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002104/0.7984, allocations: 45.8 kB / 0.9512 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003825/0.7988, allocations: 263.5 kB / 0.9515 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001814/0.799, allocations: 54.58 kB / 0.9515 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001033/0.7991, allocations: 30.48 kB / 0.9516 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.7992, allocations: 5.203 kB / 0.9516 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.7992, allocations: 35.59 kB / 0.9516 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.7992, allocations: 4 kB / 0.9516 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004283/0.7996, allocations: 104.2 kB / 0.9517 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.752e-05/0.7997, allocations: 52.66 kB / 0.9518 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.294e-05/0.7998, allocations: 109.3 kB / 0.9519 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.7998, allocations: 25.7 kB / 0.9519 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.564e-05/0.7998, allocations: 89.77 kB / 0.952 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.89e-05/0.7998, allocations: 5.219 kB / 0.952 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/0.7999, allocations: 14.88 kB / 0.952 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.111e-05/0.7999, allocations: 316.3 kB / 0.9523 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.8, allocations: 22.2 kB / 0.9523 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.891e-05/0.8001, allocations: 28.41 kB / 0.9523 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001739/0.8003, allocations: 50.66 kB / 0.9524 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.8003, allocations: 0 / 0.9524 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002236/0.8006, allocations: 84.16 kB / 0.9525 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.8006, allocations: 10.97 kB / 0.9525 GB, free: 5.879 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.8006, allocations: 5.828 kB / 0.9525 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.8006, allocations: 4.031 kB / 0.9525 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.8007, allocations: 10.42 kB / 0.9525 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.8007, allocations: 1.125 kB / 0.9525 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.027e-05/0.8008, allocations: 4.219 kB / 0.9525 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.8008, allocations: 5.156 kB / 0.9525 GB, free: 5.863 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 5.779e-05/0.8009, allocations: 115.8 kB / 0.9526 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.8009, allocations: 1.219 kB / 0.9526 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.8009, allocations: 8.812 kB / 0.9526 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.801, allocations: 0 / 0.9526 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.801, allocations: 1.438 kB / 0.9526 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.801, allocations: 0 / 0.9526 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001245/0.8011, allocations: 167.8 kB / 0.9528 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.8011, allocations: 1.25 kB / 0.9528 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.032e-05/0.8012, allocations: 10.67 kB / 0.9528 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.8012, allocations: 0 / 0.9528 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.8012, allocations: 1.375 kB / 0.9528 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.8012, allocations: 0 / 0.9528 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.8012, allocations: 0 / 0.9528 GB, free: 5.52 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.8015, allocations: 187.2 kB / 0.953 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.549e-05/0.8015, allocations: 82.64 kB / 0.9531 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.636e-05/0.8016, allocations: 0 / 0.9531 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.084e-05/0.8017, allocations: 9.266 kB / 0.9531 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.8017, allocations: 5.312 kB / 0.9531 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-06/0.8017, allocations: 5.578 kB / 0.9531 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.999e-05/0.8018, allocations: 83.94 kB / 0.9532 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8018, allocations: 0 / 0.9532 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002353/0.802, allocations: 9 kB / 0.9532 GB, free: 5.16 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.0001188/0.8021, allocations: 98.12 kB / 0.9533 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002582/0.8024, allocations: 61.88 kB / 0.9533 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.8024, allocations: 0 / 0.9533 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.8025, allocations: 27.36 kB / 0.9534 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003312/0.8029, allocations: 6.25 kB / 0.9534 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003609/0.8032, allocations: 135.2 kB / 0.9535 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001109/0.8033, allocations: 0.6774 MB / 0.9541 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.663e-05/0.8034, allocations: 5.016 kB / 0.9542 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.196e-05/0.8034, allocations: 8.406 kB / 0.9542 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of SimCode: time 3.41e-07/0.8034, allocations: 0.9375 kB / 0.9542 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of Templates: time 0.002844/0.8063, allocations: 0.5027 MB / 0.9547 GB, free: 3.93 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