Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.QuadraticLinear,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_QuadraticLinear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000777/0.0007771, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004679/0.004679, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.213/1.213, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.157/2.157, allocations: 390.9 MB / 0.6664 GB, free: 2.434 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002822, allocations: 8 kB / 0.8161 GB, free: 13.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.564/0.5643, allocations: 142.4 MB / 0.9552 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.001191/0.5655, allocations: 1.202 MB / 0.9563 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002614/0.5658, allocations: 118.2 kB / 0.9565 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.38e-05/0.5658, allocations: 0 / 0.9565 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.456e-05/0.5658, allocations: 1.531 kB / 0.9565 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.092e-05/0.5659, allocations: 9.359 kB / 0.9565 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001394/0.566, allocations: 20.3 kB / 0.9565 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.017e-05/0.5661, allocations: 37.8 kB / 0.9565 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 7.645e-05/0.5662, allocations: 8.359 kB / 0.9565 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.752e-05/0.5662, allocations: 13.38 kB / 0.9565 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.131e-05/0.5663, allocations: 34.11 kB / 0.9566 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.5663, allocations: 1.094 kB / 0.9566 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.438e-05/0.5664, allocations: 18.11 kB / 0.9566 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.835e-05/0.5664, allocations: 15.2 kB / 0.9566 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.041e-05/0.5664, allocations: 42.17 kB / 0.9566 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.187e-05/0.5665, allocations: 55.61 kB / 0.9567 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.5665, allocations: 0 / 0.9567 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.212e-06/0.5665, allocations: 0 / 0.9567 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.296e-06/0.5666, allocations: 1 kB / 0.9567 GB, free: 6.469 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003748/0.5669, allocations: 383.5 kB / 0.9571 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.567, allocations: 12.84 kB / 0.9571 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.282e-05/0.567, allocations: 32.34 kB / 0.9571 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.132e-05/0.567, allocations: 7.812 kB / 0.9571 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.275e-05/0.5671, allocations: 176.2 kB / 0.9573 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.452e-06/0.5671, allocations: 2.031 kB / 0.9573 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.5671, allocations: 9.469 kB / 0.9573 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.5674, allocations: 88.62 kB / 0.9574 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.5674, allocations: 3.938 kB / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.5674, allocations: 1.406 kB / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.5674, allocations: 0 / 0.9574 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003015/0.5677, allocations: 99.23 kB / 0.9575 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002566/0.568, allocations: 289.4 kB / 0.9578 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.5682, allocations: 74.09 kB / 0.9578 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001519/0.5683, allocations: 53.8 kB / 0.9579 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000173/0.5685, allocations: 106.3 kB / 0.958 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.462e-05/0.5685, allocations: 34.56 kB / 0.958 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.5685, allocations: 0 / 0.958 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005266/0.5691, allocations: 187.3 kB / 0.9582 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.598e-05/0.5691, allocations: 52.56 kB / 0.9582 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.908e-05/0.5692, allocations: 121.4 kB / 0.9584 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.624e-06/0.5692, allocations: 29.7 kB / 0.9584 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.612e-05/0.5692, allocations: 95.09 kB / 0.9585 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.5692, allocations: 9.281 kB / 0.9585 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.911e-05/0.5693, allocations: 19.09 kB / 0.9585 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.58e-05/0.5693, allocations: 316.5 kB / 0.9588 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001629/0.5695, allocations: 47.06 kB / 0.9588 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.5696, allocations: 47.42 kB / 0.9589 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.5699, allocations: 109.8 kB / 0.959 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5699, allocations: 0 / 0.959 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003189/0.5702, allocations: 129.7 kB / 0.9591 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.5703, allocations: 5.719 kB / 0.9591 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/0.5703, allocations: 4 kB / 0.9591 GB, free: 4.305 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.697e-06/0.5703, allocations: 5.094 kB / 0.9591 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.5704, allocations: 18.67 kB / 0.9592 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.5704, allocations: 1.438 kB / 0.9592 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.965e-05/0.5705, allocations: 23.55 kB / 0.9592 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-06/0.5705, allocations: 8 kB / 0.9592 GB, free: 4.277 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 (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 4.655e-05/0.5706, allocations: 117.9 kB / 0.9593 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.5706, allocations: 3.25 kB / 0.9593 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003462/0.5709, allocations: 144.3 kB / 0.9594 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.5709, allocations: 1.938 kB / 0.9594 GB, free: 4.066 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.571, allocations: 3.984 kB / 0.9594 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.571, allocations: 0 / 0.9594 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.5711, allocations: 176.4 kB / 0.9596 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.5711, allocations: 7.984 kB / 0.9596 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.356e-05/0.5712, allocations: 27.09 kB / 0.9596 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.5712, allocations: 1.438 kB / 0.9596 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.5712, allocations: 0 / 0.9596 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.5712, allocations: 1.531 kB / 0.9596 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.5712, allocations: 0 / 0.9596 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.5715, allocations: 236.4 kB / 0.9599 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.526e-05/0.5716, allocations: 82.39 kB / 0.96 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.5716, allocations: 5.375 kB / 0.96 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001031/0.5717, allocations: 14.98 kB / 0.96 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.5717, allocations: 9.359 kB / 0.96 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-06/0.5717, allocations: 1.375 kB / 0.96 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.561e-05/0.5718, allocations: 101.8 kB / 0.9601 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5718, allocations: 1.375 kB / 0.9601 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002112/0.572, allocations: 13.62 kB / 0.9601 GB, free: 3.453 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 (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.000484/0.5725, allocations: 0.767 MB / 0.9608 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003208/0.5728, allocations: 105.8 kB / 0.9609 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.5728, allocations: 0 / 0.9609 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.573, allocations: 54.33 kB / 0.961 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002211/0.5732, allocations: 11.91 kB / 0.961 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.5736, allocations: 190.2 kB / 0.9612 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001047/0.5737, allocations: 0.6956 MB / 0.9619 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.596e-05/0.5737, allocations: 1.375 kB / 0.9619 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.5738, allocations: 20.73 kB / 0.9619 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.5738, allocations: 0 / 0.9619 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01481/0.5886, allocations: 1.552 MB / 0.9634 GB, free: 1.035 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/0.5888, allocations: 204.7 kB / 0.9636 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/2.175, allocations: 1.031 kB / 0.9636 GB, free: 0.7773 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_QuadraticLinear_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_QuadraticLinear.fmu > Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_QuadraticLinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches