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.001257/0.001257, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.01101/0.01101, allocations: 172.2 kB / 16.26 MB, free: 6.613 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.576/1.576, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.682/2.682, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003729/0.0003729, allocations: 12 kB / 0.816 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8746/0.875, allocations: 142.4 MB / 0.955 GB, free: 7.68 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.0009835/0.8761, allocations: 333.2 kB / 0.9554 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004105/0.8765, allocations: 91.98 kB / 0.9554 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.448e-05/0.8765, allocations: 0 / 0.9554 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.928e-05/0.8766, allocations: 0 / 0.9554 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.843e-05/0.8766, allocations: 0 / 0.9554 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.8769, allocations: 8.234 kB / 0.9555 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.494e-05/0.877, allocations: 11.91 kB / 0.9555 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.156e-05/0.877, allocations: 5.672 kB / 0.9555 GB, free: 7.344 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.708e-05/0.8771, allocations: 6.844 kB / 0.9555 GB, free: 7.34 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001127/0.8772, allocations: 5.109 kB / 0.9555 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.595e-05/0.8772, allocations: 1.438 kB / 0.9555 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.514e-05/0.8773, allocations: 14.8 kB / 0.9555 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.896e-05/0.8773, allocations: 0 / 0.9555 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.831e-05/0.8774, allocations: 26.89 kB / 0.9555 GB, free: 7.297 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001077/0.8775, allocations: 21.67 kB / 0.9555 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.8775, allocations: 0 / 0.9555 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.675e-06/0.8775, allocations: 4 kB / 0.9555 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.8775, allocations: 0 / 0.9555 GB, free: 7.277 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.0004107/0.8779, allocations: 312.2 kB / 0.9558 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 6.825e-05/0.878, allocations: 9.969 kB / 0.9559 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.8782, allocations: 9.234 kB / 0.9559 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.643e-05/0.8783, allocations: 168.3 kB / 0.956 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.463e-05/0.8783, allocations: 5.719 kB / 0.956 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.139e-05/0.8784, allocations: 1.469 kB / 0.956 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001581/0.8785, allocations: 39.97 kB / 0.9561 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.8785, allocations: 192 / 0.9561 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.8786, allocations: 11.92 kB / 0.9561 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.8786, allocations: 1.156 kB / 0.9561 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.819e-05/0.8787, allocations: 15.14 kB / 0.9561 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.8788, allocations: 156.5 kB / 0.9562 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001769/0.879, allocations: 48.97 kB / 0.9563 GB, free: 6.414 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.875e-05/0.8791, allocations: 9.984 kB / 0.9563 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.8791, allocations: 0 / 0.9563 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.39e-05/0.8791, allocations: 35.81 kB / 0.9563 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 7.72e-07/0.8791, allocations: 0 / 0.9563 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002536/0.8794, allocations: 57.39 kB / 0.9564 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.015e-05/0.8794, allocations: 55.41 kB / 0.9564 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.935e-05/0.8795, allocations: 89.86 kB / 0.9565 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.8795, allocations: 35.02 kB / 0.9566 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.639e-05/0.8795, allocations: 84.08 kB / 0.9566 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.823e-05/0.8796, allocations: 11.34 kB / 0.9567 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.43e-05/0.8796, allocations: 15.05 kB / 0.9567 GB, free: 6 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.38e-05/0.8797, allocations: 310.8 kB / 0.957 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.614e-05/0.8797, allocations: 4.156 kB / 0.957 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.225e-05/0.8798, allocations: 15.55 kB / 0.957 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.816e-05/0.8798, allocations: 22.38 kB / 0.957 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.8798, allocations: 0 / 0.957 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001014/0.88, allocations: 46.53 kB / 0.9571 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.88, allocations: 4.844 kB / 0.9571 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.88, allocations: 0 / 0.9571 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.88, allocations: 4.969 kB / 0.9571 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003961/0.8804, allocations: 46.84 kB / 0.9571 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.8815, allocations: 1.305 MB / 0.9584 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.745e-05/0.8816, allocations: 1.125 kB / 0.9584 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.811e-06/0.8816, allocations: 0 / 0.9584 GB, free: 4.215 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 8.676e-05/0.8817, allocations: 120.3 kB / 0.9585 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.228e-06/0.8817, allocations: 4.938 kB / 0.9585 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.541e-05/0.8817, allocations: 7.484 kB / 0.9585 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.8817, allocations: 1 kB / 0.9585 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-06/0.8817, allocations: 0 / 0.9585 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.8817, allocations: 4.953 kB / 0.9585 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.593e-05/0.8818, allocations: 156.7 kB / 0.9587 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.8818, allocations: 0 / 0.9587 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003614/0.8822, allocations: 50.7 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.8822, allocations: 0 / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.8822, allocations: 0 / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009627/0.8832, allocations: 1.309 MB / 0.96 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.8832, allocations: 4.156 kB / 0.96 GB, free: 2.465 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.8833, allocations: 78.08 kB / 0.9601 GB, free: 2.383 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.882e-05/0.8834, allocations: 78.14 kB / 0.9601 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.826e-06/0.8834, allocations: 1.094 kB / 0.9601 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.469e-05/0.8834, allocations: 1.125 kB / 0.9601 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.785e-05/0.8834, allocations: 5.078 kB / 0.9601 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.8834, allocations: 1.156 kB / 0.9602 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.957e-05/0.8835, allocations: 79.28 kB / 0.9602 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7e-08/0.8835, allocations: 4.969 kB / 0.9602 GB, free: 2.203 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001868/0.8837, allocations: 3.25 kB / 0.9602 GB, free: 2.203 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.0001711/0.8838, allocations: 105.5 kB / 0.9603 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004666/0.8843, allocations: 63.97 kB / 0.9604 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.8843, allocations: 0 / 0.9604 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.00024/0.8846, allocations: 42.98 kB / 0.9604 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.8847, allocations: 1.031 kB / 0.9604 GB, free: 2.059 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003147/0.885, allocations: 98.38 kB / 0.9605 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001277/0.8852, allocations: 0.6726 MB / 0.9612 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.126e-05/0.8852, allocations: 1.422 kB / 0.9612 GB, free: 1.254 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.8852, allocations: 13.58 kB / 0.9612 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of SimCode: time 3.01e-07/0.8852, allocations: 0 / 0.9612 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of Templates: time 0.002708/0.888, allocations: 394.6 kB / 0.9616 GB, free: 1.039 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