Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001866/0.001866, allocations: 113 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00228/0.00228, allocations: 213.6 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.479/1.479, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.805/2.805, allocations: 476.7 MB / 0.7714 GB, free: 4.285 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_QuadraticLinear",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_QuadraticLinear",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 67.75 kB / 1.118 GB, free: 39.84 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3319, allocations: 170 MB / 1.284 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.003125/0.335, allocations: 1.518 MB / 1.286 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003577/0.3353, allocations: 111.7 kB / 1.286 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.777e-05/0.3354, allocations: 0 / 1.286 GB, free: 9.992 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 4.639e-05/0.3354, allocations: 11.92 kB / 1.286 GB, free: 9.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 6.081e-05/0.3355, allocations: 3.938 kB / 1.286 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002639/0.3357, allocations: 31.89 kB / 1.286 GB, free: 9.945 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001093/0.3359, allocations: 39.92 kB / 1.286 GB, free: 9.906 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.336, allocations: 11.92 kB / 1.286 GB, free: 9.895 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.009e-05/0.336, allocations: 19.92 kB / 1.286 GB, free: 9.875 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 5.656e-05/0.3361, allocations: 19.92 kB / 1.286 GB, free: 9.855 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.3361, allocations: 4 kB / 1.286 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.778e-05/0.3362, allocations: 19.98 kB / 1.286 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.571e-05/0.3362, allocations: 19.92 kB / 1.286 GB, free: 9.812 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.796e-05/0.3363, allocations: 19.88 kB / 1.286 GB, free: 9.793 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.3364, allocations: 71.17 kB / 1.286 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.3365, allocations: 0 / 1.286 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3365, allocations: 0 / 1.286 GB, free: 9.727 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.3365, allocations: 0 / 1.286 GB, free: 9.727 MB / 0.9825 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.0005689/0.337, allocations: 298.1 kB / 1.286 GB, free: 9.402 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3371, allocations: 12.03 kB / 1.286 GB, free: 9.391 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.494e-05/0.3371, allocations: 4.188 kB / 1.286 GB, free: 9.387 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.753e-05/0.3371, allocations: 30.75 kB / 1.286 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.273e-05/0.3372, allocations: 8.922 kB / 1.286 GB, free: 9.34 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.3373, allocations: 122.4 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-06/0.3373, allocations: 384 / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.3373, allocations: 4.375 kB / 1.286 GB, free: 9.191 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.3376, allocations: 77.97 kB / 1.287 GB, free: 9.109 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.3376, allocations: 3.938 kB / 1.287 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.3376, allocations: 7.984 kB / 1.287 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3376, allocations: 4 kB / 1.287 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003211/0.338, allocations: 67.92 kB / 1.287 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004692/0.3384, allocations: 260 kB / 1.287 GB, free: 8.73 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002297/0.3387, allocations: 66.53 kB / 1.287 GB, free: 8.656 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.3388, allocations: 44.84 kB / 1.287 GB, free: 8.609 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002411/0.3391, allocations: 31.97 kB / 1.287 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.3391, allocations: 38.56 kB / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.3391, allocations: 0 / 1.287 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005939/0.3397, allocations: 141.5 kB / 1.287 GB, free: 8.387 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.3397, allocations: 55.41 kB / 1.287 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.3399, allocations: 125.8 kB / 1.287 GB, free: 8.188 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.3399, allocations: 37.64 kB / 1.287 GB, free: 8.145 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.162e-05/0.3399, allocations: 84.14 kB / 1.287 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.916e-05/0.34, allocations: 23.83 kB / 1.287 GB, free: 8.035 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.869e-05/0.34, allocations: 9.719 kB / 1.287 GB, free: 8.02 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.3402, allocations: 322.8 kB / 1.288 GB, free: 7.695 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.3404, allocations: 39.89 kB / 1.288 GB, free: 7.656 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.3405, allocations: 43.95 kB / 1.288 GB, free: 7.613 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.3408, allocations: 72.78 kB / 1.288 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3408, allocations: 0 / 1.288 GB, free: 7.539 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003527/0.3412, allocations: 113.6 kB / 1.288 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.3412, allocations: 8 kB / 1.288 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3412, allocations: 0 / 1.288 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.3412, allocations: 336 / 1.288 GB, free: 7.414 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3413, allocations: 19.97 kB / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.3413, allocations: 0 / 1.288 GB, free: 7.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.799e-05/0.3414, allocations: 7.984 kB / 1.288 GB, free: 7.387 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.347e-06/0.3414, allocations: 11.94 kB / 1.288 GB, free: 7.375 MB / 0.9825 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 0.0001085/0.3415, allocations: 117.8 kB / 1.288 GB, free: 7.25 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.801e-05/0.3416, allocations: 3.953 kB / 1.288 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005003/0.3421, allocations: 121.6 kB / 1.288 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3421, allocations: 0 / 1.288 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3421, allocations: 4 kB / 1.288 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.3421, allocations: 4 kB / 1.288 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002553/0.3423, allocations: 148.7 kB / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.3423, allocations: 0 / 1.288 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.3424, allocations: 19.98 kB / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3424, allocations: 0 / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.343e-06/0.3424, allocations: 0 / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3424, allocations: 0 / 1.288 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.3425, allocations: 15.92 kB / 1.289 GB, free: 6.887 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004387/0.3429, allocations: 207.4 kB / 1.289 GB, free: 6.668 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.391e-05/0.3429, allocations: 7.953 kB / 1.289 GB, free: 6.66 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.3429, allocations: 3.984 kB / 1.289 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001101/0.343, allocations: 7.984 kB / 1.289 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.542e-05/0.3431, allocations: 4 kB / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.3431, allocations: 0 / 1.289 GB, free: 6.645 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 8.157e-05/0.3432, allocations: 111.2 kB / 1.289 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3432, allocations: 0 / 1.289 GB, free: 6.535 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000242/0.3434, allocations: 12 kB / 1.289 GB, free: 6.523 MB / 0.9825 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.0009187/0.3443, allocations: 0.7435 MB / 1.29 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003969/0.3447, allocations: 79.92 kB / 1.29 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3447, allocations: 0 / 1.29 GB, free: 5.676 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001662/0.3449, allocations: 43.95 kB / 1.29 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.3452, allocations: 10.5 kB / 1.29 GB, free: 5.625 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005495/0.3457, allocations: 191.6 kB / 1.29 GB, free: 5.398 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.3461, allocations: 0.6923 MB / 1.291 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.874e-05/0.3461, allocations: 0 / 1.291 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.059e-05/0.3462, allocations: 19.44 kB / 1.291 GB, free: 4.66 MB / 0.9825 GB Notification: Performance of SimCode: time 3.4e-07/0.3462, allocations: 4 kB / 1.291 GB, free: 4.656 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02546/0.3716, allocations: 2.037 MB / 1.293 GB, free: 2.77 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.98, allocations: 9.406 kB / 1.293 GB, free: 2.766 MB / 0.9825 GB " [Timeout remaining time 287] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_QuadraticLinear_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_QuadraticLinear.fmu > Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.782069831038825]