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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001466/0.001466, allocations: 100.1 kB / 15.88 MB, free: 12 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.001795/0.001795, allocations: 197 kB / 16.79 MB, free: 6.809 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.411/1.411, allocations: 222.9 MB / 240.5 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.43/2.43, allocations: 390.2 MB / 0.6649 GB, free: 0.6367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 67.89 kB / 0.8125 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7281/0.7297, allocations: 140.4 MB / 0.9496 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.PowerLinearized): time 0.002425/0.7322, allocations: 1.504 MB / 0.951 GB, free: 8.039 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002884/0.7325, allocations: 90.59 kB / 0.9511 GB, free: 7.969 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.663e-05/0.7325, allocations: 5.312 kB / 0.9511 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.029e-05/0.7325, allocations: 0 / 0.9511 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.335e-05/0.7326, allocations: 7.922 kB / 0.9511 GB, free: 7.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.7328, allocations: 12.11 kB / 0.9512 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.172e-05/0.7328, allocations: 25.55 kB / 0.9512 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.362e-05/0.7329, allocations: 6.75 kB / 0.9512 GB, free: 7.93 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.002e-05/0.733, allocations: 8.125 kB / 0.9512 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.845e-05/0.733, allocations: 14.67 kB / 0.9512 GB, free: 7.914 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.733, allocations: 5.312 kB / 0.9512 GB, free: 7.91 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.607e-05/0.7331, allocations: 12.23 kB / 0.9512 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.547e-05/0.7331, allocations: 9.312 kB / 0.9512 GB, free: 7.898 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.7331, allocations: 13.3 kB / 0.9512 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.896e-05/0.7332, allocations: 22.83 kB / 0.9513 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.7332, allocations: 0 / 0.9513 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.82e-07/0.7332, allocations: 0 / 0.9513 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.608e-06/0.7332, allocations: 5.375 kB / 0.9513 GB, free: 7.867 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.0003821/0.7336, allocations: 343.2 kB / 0.9516 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.7337, allocations: 9.625 kB / 0.9516 GB, free: 7.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.7339, allocations: 17.08 kB / 0.9516 GB, free: 7.488 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.977e-05/0.7339, allocations: 165.7 kB / 0.9518 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.734, allocations: 1.75 kB / 0.9518 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.734, allocations: 1.75 kB / 0.9518 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/0.7342, allocations: 65.28 kB / 0.9518 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.7342, allocations: 192 / 0.9518 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.7342, allocations: 3.938 kB / 0.9519 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.7342, allocations: 1.375 kB / 0.9519 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.7344, allocations: 46.08 kB / 0.9519 GB, free: 7.211 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003267/0.7348, allocations: 262.7 kB / 0.9521 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001607/0.7349, allocations: 59.73 kB / 0.9522 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.735, allocations: 30.27 kB / 0.9522 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.7351, allocations: 0 / 0.9522 GB, free: 6.852 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.618e-05/0.7351, allocations: 32.47 kB / 0.9523 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.7351, allocations: 4 kB / 0.9523 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0004096/0.7355, allocations: 103.4 kB / 0.9524 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.7355, allocations: 52.81 kB / 0.9524 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.409e-05/0.7356, allocations: 105.4 kB / 0.9525 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.406e-06/0.7356, allocations: 25.7 kB / 0.9525 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.113e-05/0.7357, allocations: 89.36 kB / 0.9526 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.7357, allocations: 5.5 kB / 0.9526 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.7357, allocations: 11.22 kB / 0.9526 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.952e-05/0.7358, allocations: 324.3 kB / 0.953 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.7359, allocations: 17.42 kB / 0.953 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.315e-05/0.736, allocations: 25.09 kB / 0.953 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.7362, allocations: 63.88 kB / 0.9531 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.7362, allocations: 0 / 0.9531 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002209/0.7364, allocations: 84.05 kB / 0.9531 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.7364, allocations: 5.094 kB / 0.9531 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.7364, allocations: 0 / 0.9531 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.7365, allocations: 5.344 kB / 0.9531 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.7366, allocations: 10.05 kB / 0.9532 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.042e-06/0.7366, allocations: 9.125 kB / 0.9532 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.079e-05/0.7367, allocations: 8.422 kB / 0.9532 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.7367, allocations: 1.188 kB / 0.9532 GB, free: 5.977 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.175e-05/0.7367, allocations: 115.1 kB / 0.9533 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.475e-05/0.7368, allocations: 2.562 kB / 0.9533 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.006e-05/0.7368, allocations: 7.531 kB / 0.9533 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.7368, allocations: 5.234 kB / 0.9533 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.7368, allocations: 0 / 0.9533 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.7368, allocations: 1.281 kB / 0.9533 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001271/0.7369, allocations: 168.1 kB / 0.9535 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.7369, allocations: 0 / 0.9535 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.051e-05/0.737, allocations: 11.52 kB / 0.9535 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.502e-06/0.737, allocations: 0 / 0.9535 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-06/0.7371, allocations: 1.375 kB / 0.9535 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.7371, allocations: 3.984 kB / 0.9535 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.7371, allocations: 0 / 0.9535 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002439/0.7373, allocations: 179.7 kB / 0.9536 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.147e-05/0.7373, allocations: 81.05 kB / 0.9537 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.7374, allocations: 5.078 kB / 0.9537 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.914e-05/0.7375, allocations: 5.031 kB / 0.9537 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.7375, allocations: 9.016 kB / 0.9537 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-06/0.7375, allocations: 1.688 kB / 0.9537 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.749e-05/0.7375, allocations: 83.94 kB / 0.9538 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7375, allocations: 0 / 0.9538 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002148/0.7378, allocations: 5.219 kB / 0.9538 GB, free: 5.277 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 8.736e-05/0.7379, allocations: 95.41 kB / 0.9539 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002438/0.7381, allocations: 56.28 kB / 0.954 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7381, allocations: 1.344 kB / 0.954 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.815e-05/0.7382, allocations: 23.05 kB / 0.954 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.7385, allocations: 13.73 kB / 0.954 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003231/0.7388, allocations: 165.8 kB / 0.9542 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.7389, allocations: 0.6819 MB / 0.9548 GB, free: 4.273 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.37e-05/0.739, allocations: 8.5 kB / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of SimCode: time 3.5e-07/0.739, allocations: 0 / 0.9548 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of Templates: time 0.002004/0.741, allocations: 0.6296 MB / 0.9555 GB, free: 3.953 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.PowerLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches