Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001584/0.001584, allocations: 115.6 kB / 16.37 MB, free: 6.012 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.001772/0.001772, allocations: 191.6 kB / 17.31 MB, free: 5.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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.426/2.426, allocations: 437.1 MB / 0.7112 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 65.22 kB / 0.8707 GB, free: 1.473 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2527, allocations: 151.6 MB / 1.019 GB, free: 9.879 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.PowerLinearized): time 0.001904/0.2546, allocations: 0.59 MB / 1.019 GB, free: 9.281 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002779/0.2549, allocations: 95.73 kB / 1.019 GB, free: 9.188 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.448e-05/0.2549, allocations: 0 / 1.019 GB, free: 9.188 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 1.989e-05/0.2549, allocations: 7.938 kB / 1.019 GB, free: 9.18 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.298e-05/0.255, allocations: 0 / 1.019 GB, free: 9.18 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.2552, allocations: 15.97 kB / 1.019 GB, free: 9.164 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 4.538e-05/0.2553, allocations: 11.98 kB / 1.019 GB, free: 9.152 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.085e-05/0.2553, allocations: 0 / 1.019 GB, free: 9.152 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.2553, allocations: 4 kB / 1.02 GB, free: 9.148 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.058e-05/0.2554, allocations: 7.938 kB / 1.02 GB, free: 9.141 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.088e-05/0.2554, allocations: 0 / 1.02 GB, free: 9.141 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.731e-05/0.2555, allocations: 11.98 kB / 1.02 GB, free: 9.129 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.08e-05/0.2555, allocations: 7.938 kB / 1.02 GB, free: 9.121 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.694e-05/0.2555, allocations: 0 / 1.02 GB, free: 9.121 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 8.015e-05/0.2556, allocations: 23.91 kB / 1.02 GB, free: 9.098 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.2556, allocations: 3.984 kB / 1.02 GB, free: 9.094 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.836e-06/0.2556, allocations: 8 kB / 1.02 GB, free: 9.086 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.2556, allocations: 0 / 1.02 GB, free: 9.086 MB / 0.795 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.0003116/0.2559, allocations: 315.5 kB / 1.02 GB, free: 8.727 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.256, allocations: 8.922 kB / 1.02 GB, free: 8.719 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.2561, allocations: 12.92 kB / 1.02 GB, free: 8.707 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.918e-05/0.2562, allocations: 164.4 kB / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.636e-05/0.2562, allocations: 384 / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.033e-06/0.2563, allocations: 384 / 1.02 GB, free: 8.508 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.2564, allocations: 46.25 kB / 1.02 GB, free: 8.457 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.633e-06/0.2564, allocations: 192 / 1.02 GB, free: 8.457 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.387e-06/0.2564, allocations: 3.938 kB / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-06/0.2564, allocations: 0 / 1.02 GB, free: 8.453 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.91e-05/0.2565, allocations: 15.92 kB / 1.02 GB, free: 8.438 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001324/0.2566, allocations: 149.7 kB / 1.02 GB, free: 8.242 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.2568, allocations: 46.55 kB / 1.02 GB, free: 8.188 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.672e-05/0.2569, allocations: 16.91 kB / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.2569, allocations: 0 / 1.02 GB, free: 8.168 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.2569, allocations: 34.56 kB / 1.02 GB, free: 8.125 MB / 0.795 GB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.2569, allocations: 0 / 1.02 GB, free: 8.125 MB / 0.795 GB Notification: Performance of matching and sorting (n=3): time 0.0001959/0.2571, allocations: 65.48 kB / 1.02 GB, free: 8.055 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.2572, allocations: 51.41 kB / 1.02 GB, free: 7.992 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.037e-05/0.2572, allocations: 93.86 kB / 1.021 GB, free: 7.891 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.369e-05/0.2572, allocations: 29.7 kB / 1.021 GB, free: 7.855 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 2.726e-05/0.2572, allocations: 80.14 kB / 1.021 GB, free: 7.773 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.266e-05/0.2573, allocations: 7.844 kB / 1.021 GB, free: 7.766 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.262e-05/0.2573, allocations: 13.72 kB / 1.021 GB, free: 7.746 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.2574, allocations: 318.8 kB / 1.021 GB, free: 7.426 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.912e-05/0.2575, allocations: 8 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.172e-05/0.2575, allocations: 11.98 kB / 1.021 GB, free: 7.406 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.863e-05/0.2576, allocations: 16.86 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2576, allocations: 4 kB / 1.021 GB, free: 7.383 MB / 0.795 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000106/0.2577, allocations: 53.61 kB / 1.021 GB, free: 7.324 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2577, allocations: 4 kB / 1.021 GB, free: 7.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.2577, allocations: 3.938 kB / 1.021 GB, free: 7.316 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.2578, allocations: 3.938 kB / 1.021 GB, free: 7.312 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003623/0.2581, allocations: 43.94 kB / 1.021 GB, free: 7.27 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001194/0.2593, allocations: 1.404 MB / 1.022 GB, free: 5.727 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.13e-05/0.2594, allocations: 8.125 kB / 1.022 GB, free: 5.719 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.2594, allocations: 4.031 kB / 1.022 GB, free: 5.715 MB / 0.795 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.12e-05/0.2595, allocations: 109.8 kB / 1.023 GB, free: 5.598 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.16e-05/0.2595, allocations: 7.891 kB / 1.023 GB, free: 5.59 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.381e-05/0.2595, allocations: 3.828 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.2595, allocations: 0 / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.2595, allocations: 4 kB / 1.023 GB, free: 5.578 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.2595, allocations: 3.984 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.659e-05/0.2596, allocations: 153.6 kB / 1.023 GB, free: 5.375 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2596, allocations: 4 kB / 1.023 GB, free: 5.371 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003458/0.26, allocations: 43.94 kB / 1.023 GB, free: 5.328 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.26, allocations: 4 kB / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.26, allocations: 0 / 1.023 GB, free: 5.324 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/0.261, allocations: 1.408 MB / 1.024 GB, free: 3.781 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.2611, allocations: 4.031 kB / 1.024 GB, free: 3.777 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.2612, allocations: 77.05 kB / 1.024 GB, free: 3.684 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 2.542e-05/0.2612, allocations: 81.2 kB / 1.024 GB, free: 3.586 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.195e-06/0.2612, allocations: 3.938 kB / 1.024 GB, free: 3.582 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.83e-05/0.2613, allocations: 4 kB / 1.024 GB, free: 3.578 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.538e-05/0.2613, allocations: 3.984 kB / 1.024 GB, free: 3.574 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.217e-06/0.2613, allocations: 0 / 1.024 GB, free: 3.574 MB / 0.795 GB Notification: Performance of sorting global known variables: time 2.154e-05/0.2613, allocations: 75.28 kB / 1.024 GB, free: 3.5 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2613, allocations: 0 / 1.024 GB, free: 3.5 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0001964/0.2615, allocations: 8 kB / 1.024 GB, free: 3.492 MB / 0.795 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.0001032/0.2616, allocations: 107.2 kB / 1.025 GB, free: 3.379 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0004377/0.2621, allocations: 59.91 kB / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.2621, allocations: 0 / 1.025 GB, free: 3.32 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.2623, allocations: 43.89 kB / 1.025 GB, free: 3.277 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001322/0.2625, allocations: 3.984 kB / 1.025 GB, free: 3.273 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002787/0.2628, allocations: 97.75 kB / 1.025 GB, free: 3.152 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.263, allocations: 0.6729 MB / 1.025 GB, free: 2.453 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.064e-05/0.263, allocations: 4 kB / 1.025 GB, free: 2.449 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.484e-05/0.263, allocations: 11.44 kB / 1.025 GB, free: 2.438 MB / 0.795 GB Notification: Performance of SimCode: time 2.7e-07/0.263, allocations: 0 / 1.025 GB, free: 2.438 MB / 0.795 GB Notification: Performance of Templates: time 0.002373/0.2654, allocations: 416.3 kB / 1.026 GB, free: 2.035 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_PowerLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches