Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings.Utilities.Math.Examples.QuadraticLinear") translateModel(Buildings.Utilities.Math.Examples.QuadraticLinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|quadraticLinear.y",fileNamePrefix="Buildings_latest_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.001507/0.001507, 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.00186/0.00186, allocations: 191.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.401/1.401, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.783/2.783, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 63.3 kB / 0.8984 GB, free: 37.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3451, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.003176/0.3484, allocations: 1.549 MB / 1.054 GB, free: 7.285 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0003487/0.3488, allocations: 123.6 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.22e-05/0.3488, allocations: 0 / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 5.203e-05/0.3489, allocations: 0 / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.209e-05/0.3489, allocations: 3.938 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001786/0.3491, allocations: 27.91 kB / 1.054 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.604e-05/0.3492, allocations: 47.84 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 8.717e-05/0.3493, allocations: 4 kB / 1.054 GB, free: 7.082 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.814e-05/0.3494, allocations: 19.92 kB / 1.054 GB, free: 7.062 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.249e-05/0.3494, allocations: 15.92 kB / 1.054 GB, free: 7.047 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.3494, allocations: 4 kB / 1.054 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.518e-05/0.3495, allocations: 19.97 kB / 1.054 GB, free: 7.023 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 5.79e-05/0.3496, allocations: 11.94 kB / 1.054 GB, free: 7.012 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.301e-05/0.3496, allocations: 19.86 kB / 1.054 GB, free: 6.992 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001131/0.3497, allocations: 55.86 kB / 1.054 GB, free: 6.938 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3497, allocations: 4 kB / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3497, allocations: 0 / 1.054 GB, free: 6.934 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.378e-06/0.3498, allocations: 0 / 1.054 GB, free: 6.934 MB / 0.8106 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.0006099/0.3504, allocations: 387.4 kB / 1.054 GB, free: 6.504 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.3504, allocations: 15.97 kB / 1.054 GB, free: 6.488 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.904e-05/0.3505, allocations: 4.844 kB / 1.054 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.3506, allocations: 172.3 kB / 1.054 GB, free: 6.277 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3507, allocations: 4.375 kB / 1.055 GB, free: 6.273 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.387e-05/0.3507, allocations: 4.375 kB / 1.055 GB, free: 6.27 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.3509, allocations: 74.16 kB / 1.055 GB, free: 6.191 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.351, allocations: 4.188 kB / 1.055 GB, free: 6.188 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.351, allocations: 3.938 kB / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.351, allocations: 0 / 1.055 GB, free: 6.184 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003038/0.3513, allocations: 79.92 kB / 1.055 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004288/0.3518, allocations: 277 kB / 1.055 GB, free: 5.785 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.352, allocations: 70.41 kB / 1.055 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.3522, allocations: 52.91 kB / 1.055 GB, free: 5.652 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002656/0.3524, allocations: 105.1 kB / 1.055 GB, free: 5.531 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.3525, allocations: 34.56 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3525, allocations: 0 / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0005951/0.3531, allocations: 149.5 kB / 1.055 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.3531, allocations: 51.41 kB / 1.055 GB, free: 5.273 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.3532, allocations: 132.8 kB / 1.055 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.579e-05/0.3533, allocations: 25.7 kB / 1.056 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.3533, allocations: 100.1 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/0.3534, allocations: 7.812 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.874e-05/0.3534, allocations: 21.7 kB / 1.056 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001754/0.3536, allocations: 314.8 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.3537, allocations: 43.89 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.3539, allocations: 31.97 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002867/0.3542, allocations: 84.78 kB / 1.056 GB, free: 4.492 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3542, allocations: 7.922 kB / 1.056 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003476/0.3546, allocations: 102 kB / 1.056 GB, free: 4.379 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.3546, allocations: 4 kB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.3546, allocations: 3.984 kB / 1.056 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.3546, allocations: 3.938 kB / 1.056 GB, free: 4.367 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.3548, allocations: 23.97 kB / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/0.3548, allocations: 0 / 1.056 GB, free: 4.344 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.54e-05/0.3549, allocations: 11.98 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.3549, allocations: 0 / 1.056 GB, free: 4.332 MB / 0.8106 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 9.341e-05/0.355, allocations: 121.7 kB / 1.056 GB, free: 4.203 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.367e-05/0.3551, allocations: 7.906 kB / 1.056 GB, free: 4.195 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003918/0.3555, allocations: 121.5 kB / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3555, allocations: 4 kB / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3555, allocations: 0 / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.3555, allocations: 0 / 1.056 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002387/0.3557, allocations: 185.6 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3557, allocations: 0 / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001032/0.3559, allocations: 15.92 kB / 1.057 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.3559, allocations: 8 kB / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.436e-06/0.3559, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3559, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3559, allocations: 0 / 1.057 GB, free: 3.809 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003884/0.3563, allocations: 207.3 kB / 1.057 GB, free: 3.59 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.3563, allocations: 89.02 kB / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.567e-05/0.3564, allocations: 0 / 1.057 GB, free: 3.484 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.3565, allocations: 15.97 kB / 1.057 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.3565, allocations: 4 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.3565, allocations: 0 / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 6.312e-05/0.3566, allocations: 103.2 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of sort global known variables: time 4.5e-07/0.3566, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002418/0.3569, allocations: 8 kB / 1.057 GB, free: 3.355 MB / 0.8106 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.0001672/0.357, allocations: 107.2 kB / 1.057 GB, free: 3.242 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003451/0.3574, allocations: 75.92 kB / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3574, allocations: 0 / 1.057 GB, free: 3.168 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.3576, allocations: 39.95 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000268/0.3578, allocations: 21.25 kB / 1.057 GB, free: 3.109 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003829/0.3582, allocations: 171 kB / 1.057 GB, free: 2.914 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.3588, allocations: 0.6887 MB / 1.058 GB, free: 2.199 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 4.219e-05/0.3588, allocations: 7.797 kB / 1.058 GB, free: 2.191 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.074e-05/0.3589, allocations: 15.44 kB / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of SimCode: time 6.61e-07/0.3589, allocations: 0 / 1.058 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of Templates: time 0.00306/0.3619, allocations: 0.6654 MB / 1.059 GB, free: 1.516 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches