Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|TExact",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized") translateModel(Buildings.Utilities.Math.Functions.Examples.PowerLinearized,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|TExact",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 111.3 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.002265/0.002264, allocations: 190.9 kB / 16.14 MB, free: 6.711 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.436/1.436, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.492/2.492, allocations: 390.2 MB / 0.6642 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001312, allocations: 59.91 kB / 0.8119 GB, free: 14.86 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8788/0.8801, allocations: 140.4 MB / 0.9489 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.001781/0.8819, allocations: 0.6477 MB / 0.9496 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000327/0.8823, allocations: 95.08 kB / 0.9496 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.312e-05/0.8823, allocations: 3.938 kB / 0.9497 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.8823, allocations: 0 / 0.9497 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 3.974e-05/0.8824, allocations: 0 / 0.9497 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001754/0.8826, allocations: 13.48 kB / 0.9497 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.342e-05/0.8826, allocations: 2.75 kB / 0.9497 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.8827, allocations: 1.375 kB / 0.9497 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.108e-05/0.8827, allocations: 10.73 kB / 0.9497 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.613e-05/0.8828, allocations: 5.359 kB / 0.9497 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.8828, allocations: 5.375 kB / 0.9497 GB, free: 8.645 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.675e-05/0.8828, allocations: 14.86 kB / 0.9497 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.401e-05/0.8829, allocations: 0 / 0.9497 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.424e-05/0.8829, allocations: 5.312 kB / 0.9497 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.915e-05/0.883, allocations: 17.42 kB / 0.9497 GB, free: 8.621 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.883, allocations: 5.375 kB / 0.9497 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.162e-06/0.883, allocations: 0 / 0.9497 GB, free: 8.617 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.348e-06/0.883, allocations: 0 / 0.9497 GB, free: 8.617 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.0003027/0.8833, allocations: 313 kB / 0.95 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.8834, allocations: 9.625 kB / 0.95 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001678/0.8835, allocations: 14.42 kB / 0.9501 GB, free: 8.258 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.511e-05/0.8836, allocations: 164.4 kB / 0.9502 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.8836, allocations: 1.75 kB / 0.9502 GB, free: 8.059 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.707e-06/0.8836, allocations: 5.75 kB / 0.9502 GB, free: 8.055 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.8838, allocations: 34.38 kB / 0.9502 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.8838, allocations: 1.562 kB / 0.9503 GB, free: 8.02 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.8838, allocations: 7.938 kB / 0.9503 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.8838, allocations: 0 / 0.9503 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.979e-05/0.8839, allocations: 28.16 kB / 0.9503 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001183/0.884, allocations: 156.3 kB / 0.9504 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.8842, allocations: 44.28 kB / 0.9505 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.437e-05/0.8842, allocations: 10.36 kB / 0.9505 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.8842, allocations: 0 / 0.9505 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.369e-05/0.8843, allocations: 39.94 kB / 0.9505 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 7.01e-07/0.8843, allocations: 0 / 0.9505 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000207/0.8845, allocations: 60.67 kB / 0.9506 GB, free: 7.648 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/0.8845, allocations: 52.78 kB / 0.9506 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.15e-05/0.8845, allocations: 89.86 kB / 0.9507 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.274e-06/0.8846, allocations: 25.7 kB / 0.9507 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.446e-05/0.8846, allocations: 80.14 kB / 0.9508 GB, free: 7.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.8846, allocations: 20.55 kB / 0.9508 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.903e-05/0.8846, allocations: 16.47 kB / 0.9509 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.663e-05/0.8847, allocations: 310.8 kB / 0.9512 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.859e-05/0.8847, allocations: 8.109 kB / 0.9512 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.924e-05/0.8848, allocations: 8.125 kB / 0.9512 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.088e-05/0.8849, allocations: 21.09 kB / 0.9512 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.8849, allocations: 1.375 kB / 0.9512 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.626e-05/0.885, allocations: 54 kB / 0.9512 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.885, allocations: 5.375 kB / 0.9512 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.885, allocations: 1.375 kB / 0.9512 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.885, allocations: 3.938 kB / 0.9512 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003773/0.8854, allocations: 43.3 kB / 0.9513 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.8864, allocations: 1.313 MB / 0.9526 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/0.8865, allocations: 1.375 kB / 0.9526 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.241e-06/0.8865, allocations: 1.375 kB / 0.9526 GB, free: 5.547 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 7.233e-05/0.8865, allocations: 115.2 kB / 0.9527 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.091e-05/0.8866, allocations: 5.312 kB / 0.9527 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.306e-05/0.8866, allocations: 3.5 kB / 0.9527 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.8866, allocations: 5.469 kB / 0.9527 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-06/0.8866, allocations: 0 / 0.9527 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.8866, allocations: 0 / 0.9527 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.024e-05/0.8867, allocations: 160.3 kB / 0.9529 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.8867, allocations: 1.375 kB / 0.9529 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003667/0.8871, allocations: 43.06 kB / 0.9529 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.8871, allocations: 4 kB / 0.9529 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.8871, allocations: 5 kB / 0.9529 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008346/0.8879, allocations: 1.312 MB / 0.9542 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.8879, allocations: 1.438 kB / 0.9542 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001114/0.8881, allocations: 78.56 kB / 0.9543 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.748e-05/0.8881, allocations: 81.09 kB / 0.9543 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.502e-06/0.8881, allocations: 1.344 kB / 0.9543 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.655e-05/0.8881, allocations: 1.438 kB / 0.9543 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.8882, allocations: 5.344 kB / 0.9543 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.8882, allocations: 1.188 kB / 0.9543 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.599e-05/0.8882, allocations: 75.28 kB / 0.9544 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8882, allocations: 0 / 0.9544 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001933/0.8884, allocations: 3.719 kB / 0.9544 GB, free: 3.543 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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001277/0.8885, allocations: 113.2 kB / 0.9545 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004504/0.889, allocations: 57.53 kB / 0.9546 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.889, allocations: 0 / 0.9546 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002402/0.8892, allocations: 43.17 kB / 0.9546 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001444/0.8894, allocations: 13.12 kB / 0.9546 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003806/0.8898, allocations: 94.22 kB / 0.9547 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000158/0.89, allocations: 0.681 MB / 0.9554 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.162e-05/0.89, allocations: 5.344 kB / 0.9554 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.579e-05/0.89, allocations: 8.531 kB / 0.9554 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.89, allocations: 0 / 0.9554 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of Templates: time 0.002594/0.8926, allocations: 392.5 kB / 0.9558 GB, free: 2.367 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_PowerLinearized.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches