Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear") translateModel(Buildings.Utilities.Math.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001243/0.001243, allocations: 194.8 kB / 16.14 MB, free: 6.691 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.396/1.396, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.714/2.714, allocations: 437 MB / 0.7099 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 63.91 kB / 0.8685 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.724/0.7254, allocations: 151.6 MB / 1.017 GB, free: 2.812 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.003343/0.7288, allocations: 1.558 MB / 1.018 GB, free: 1.246 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0004327/0.7293, allocations: 112.6 kB / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.911e-05/0.7294, allocations: 0 / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.514e-05/0.7295, allocations: 0 / 1.018 GB, free: 1.133 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.003e-05/0.7295, allocations: 11.92 kB / 1.018 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002179/0.7298, allocations: 15.98 kB / 1.018 GB, free: 1.105 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.395e-05/0.7299, allocations: 47.8 kB / 1.018 GB, free: 1.059 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.73, allocations: 15.97 kB / 1.018 GB, free: 1.043 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.19e-05/0.73, allocations: 7.984 kB / 1.018 GB, free: 1.035 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.455e-05/0.7301, allocations: 31.86 kB / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.7301, allocations: 0 / 1.018 GB, free: 1.004 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.974e-05/0.7302, allocations: 19.98 kB / 1.018 GB, free: 0.9844 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 6.095e-05/0.7303, allocations: 7.984 kB / 1.018 GB, free: 0.9766 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.803e-05/0.7303, allocations: 19.88 kB / 1.018 GB, free: 0.957 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.7305, allocations: 59.78 kB / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.7305, allocations: 0 / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.163e-06/0.7305, allocations: 0 / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.469e-06/0.7305, allocations: 0 / 1.018 GB, free: 0.8984 MB / 0.7637 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005669/0.7311, allocations: 381.2 kB / 1.019 GB, free: 488 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.7311, allocations: 12.02 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.26e-05/0.7312, allocations: 8.844 kB / 1.019 GB, free: 468 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.7313, allocations: 180.2 kB / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.7313, allocations: 384 / 1.019 GB, free: 248 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.673e-05/0.7314, allocations: 4.375 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002792/0.7316, allocations: 74.2 kB / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.7317, allocations: 192 / 1.019 GB, free: 164 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.7317, allocations: 15.92 kB / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.7317, allocations: 0 / 1.019 GB, free: 148 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.732, allocations: 71.92 kB / 1.019 GB, free: 76 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004166/0.7324, allocations: 284.9 kB / 1.019 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002206/0.7326, allocations: 74.52 kB / 1.02 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.7328, allocations: 40.81 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002785/0.7331, allocations: 109.1 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.7331, allocations: 34.56 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.353e-06/0.7331, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005661/0.7337, allocations: 153.4 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.7338, allocations: 55.34 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.7339, allocations: 132.8 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.7339, allocations: 25.7 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.734, allocations: 92.12 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.008e-05/0.734, allocations: 7.906 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.06e-05/0.734, allocations: 17.72 kB / 1.02 GB, free: 14.94 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.7341, allocations: 318.8 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.7343, allocations: 35.97 kB / 1.02 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.7345, allocations: 43.95 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000271/0.7347, allocations: 72.78 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.7348, allocations: 3.938 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003297/0.7351, allocations: 117.5 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.7351, allocations: 10.34 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.7351, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.7351, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.7353, allocations: 15.98 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.7353, allocations: 0 / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.06e-05/0.7354, allocations: 15.92 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.397e-06/0.7354, allocations: 8 kB / 1.021 GB, free: 14.29 MB / 0.7794 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): 3 * 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 8.447e-05/0.7355, allocations: 117.8 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.049e-05/0.7355, allocations: 7.906 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003974/0.7359, allocations: 117.5 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.7359, allocations: 0 / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.736, allocations: 8 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.736, allocations: 384 / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001949/0.7362, allocations: 181.6 kB / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.7362, allocations: 0 / 1.021 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001011/0.7363, allocations: 23.97 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.7363, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.7363, allocations: 0 / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.7363, allocations: 3.938 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.7363, allocations: 0 / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003862/0.7367, allocations: 219.3 kB / 1.021 GB, free: 13.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.562e-05/0.7368, allocations: 77.11 kB / 1.021 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.7368, allocations: 4 kB / 1.021 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.7369, allocations: 15.92 kB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.684e-05/0.7369, allocations: 7.984 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.618e-06/0.737, allocations: 4 kB / 1.022 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.234e-05/0.737, allocations: 95.27 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.3e-07/0.737, allocations: 0 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002368/0.7373, allocations: 19.91 kB / 1.022 GB, free: 13.3 MB / 0.7794 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): 3 * 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.0001578/0.7374, allocations: 99.23 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003583/0.7378, allocations: 87.84 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.7378, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.738, allocations: 35.97 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002788/0.7382, allocations: 19.86 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004079/0.7387, allocations: 155.3 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000239/0.7389, allocations: 0.6848 MB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.522e-05/0.739, allocations: 4 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.588e-05/0.739, allocations: 7.438 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of SimCode: time 2.5e-07/0.739, allocations: 3.938 kB / 1.023 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of Templates: time 0.003308/0.7423, allocations: 0.6702 MB / 1.023 GB, free: 11.49 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches