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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.0007873/0.0007873, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.0008569/0.000857, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 223.2 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.473/2.473, allocations: 390.4 MB / 0.6655 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003375, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8507/0.851, allocations: 142.3 MB / 0.9538 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.QuadraticLinear): time 0.001999/0.8531, allocations: 1.196 MB / 0.955 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003414/0.8535, allocations: 106.8 kB / 0.9551 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.145e-05/0.8535, allocations: 1.469 kB / 0.9551 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.082e-05/0.8536, allocations: 3.938 kB / 0.9551 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.205e-05/0.8537, allocations: 9.297 kB / 0.9551 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.8539, allocations: 17.58 kB / 0.9551 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.988e-05/0.854, allocations: 38.2 kB / 0.9552 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.8541, allocations: 8.797 kB / 0.9552 GB, free: 6.98 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.279e-05/0.8542, allocations: 17.64 kB / 0.9552 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.399e-05/0.8542, allocations: 22.23 kB / 0.9552 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.8542, allocations: 2.312 kB / 0.9552 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.957e-05/0.8543, allocations: 21.61 kB / 0.9553 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.994e-05/0.8544, allocations: 11.34 kB / 0.9553 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.8544, allocations: 32.7 kB / 0.9553 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.8545, allocations: 39.38 kB / 0.9553 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.8545, allocations: 1.219 kB / 0.9553 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.244e-06/0.8545, allocations: 0 / 0.9553 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.8546, allocations: 0 / 0.9553 GB, free: 6.871 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.0005462/0.8551, allocations: 383.9 kB / 0.9557 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/0.8552, allocations: 9.406 kB / 0.9557 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.325e-05/0.8552, allocations: 35.62 kB / 0.9557 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.957e-05/0.8553, allocations: 10.23 kB / 0.9558 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.8554, allocations: 167.9 kB / 0.9559 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.8554, allocations: 9.125 kB / 0.9559 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.8554, allocations: 1.562 kB / 0.9559 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.8557, allocations: 88.58 kB / 0.956 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.208e-06/0.8557, allocations: 0 / 0.956 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.8557, allocations: 0 / 0.956 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.8558, allocations: 1.188 kB / 0.956 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002938/0.8561, allocations: 106.8 kB / 0.9561 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003677/0.8564, allocations: 289.4 kB / 0.9564 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.8566, allocations: 77.81 kB / 0.9565 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.8568, allocations: 49.02 kB / 0.9565 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002238/0.857, allocations: 105.3 kB / 0.9566 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.821e-05/0.8571, allocations: 39.75 kB / 0.9566 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.8571, allocations: 0 / 0.9566 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005392/0.8576, allocations: 184.1 kB / 0.9568 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.8577, allocations: 51.41 kB / 0.9569 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.098e-05/0.8577, allocations: 129.8 kB / 0.957 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.745e-06/0.8578, allocations: 25.7 kB / 0.957 GB, free: 5.301 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.986e-05/0.8578, allocations: 94.47 kB / 0.9571 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.8578, allocations: 5.094 kB / 0.9571 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.829e-06/0.8578, allocations: 1.219 kB / 0.9571 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.614e-05/0.8579, allocations: 324 kB / 0.9574 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.858, allocations: 47.66 kB / 0.9575 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.8582, allocations: 46.11 kB / 0.9575 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.8583, allocations: 50.81 kB / 0.9576 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.8583, allocations: 5.203 kB / 0.9576 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000339/0.8587, allocations: 137.4 kB / 0.9577 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.8587, allocations: 4.781 kB / 0.9577 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.8587, allocations: 0 / 0.9577 GB, free: 4.75 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.8587, allocations: 5.016 kB / 0.9577 GB, free: 4.746 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.8589, allocations: 26.91 kB / 0.9577 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.8589, allocations: 1.062 kB / 0.9577 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.61e-05/0.859, allocations: 19.64 kB / 0.9578 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.859, allocations: 1.062 kB / 0.9578 GB, free: 4.727 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.764e-05/0.859, allocations: 113.1 kB / 0.9579 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.886e-05/0.8591, allocations: 7.219 kB / 0.9579 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.8594, allocations: 148.2 kB / 0.958 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.8594, allocations: 5.266 kB / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.8595, allocations: 0 / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.8595, allocations: 0 / 0.958 GB, free: 4.508 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001408/0.8596, allocations: 187.6 kB / 0.9582 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.8596, allocations: 0 / 0.9582 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.902e-05/0.8597, allocations: 15.92 kB / 0.9582 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.8597, allocations: 1.312 kB / 0.9582 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.8597, allocations: 0 / 0.9582 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.8597, allocations: 5.469 kB / 0.9582 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.8598, allocations: 3.953 kB / 0.9582 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003361/0.8601, allocations: 228.1 kB / 0.9584 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.805e-05/0.8601, allocations: 83.2 kB / 0.9585 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.531e-05/0.8601, allocations: 0 / 0.9585 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.8603, allocations: 19.81 kB / 0.9585 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.834e-05/0.8603, allocations: 6.188 kB / 0.9585 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.8603, allocations: 9.078 kB / 0.9585 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.214e-05/0.8604, allocations: 106.8 kB / 0.9586 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8604, allocations: 0 / 0.9586 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002384/0.8606, allocations: 9.5 kB / 0.9587 GB, free: 3.902 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005592/0.8612, allocations: 0.768 MB / 0.9594 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003202/0.8615, allocations: 105.9 kB / 0.9595 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.8615, allocations: 0 / 0.9595 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001454/0.8617, allocations: 49.23 kB / 0.9596 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002525/0.8619, allocations: 10.64 kB / 0.9596 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004907/0.8624, allocations: 193.4 kB / 0.9598 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.8626, allocations: 0.6871 MB / 0.9604 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.993e-05/0.8627, allocations: 1.531 kB / 0.9604 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.467e-05/0.8627, allocations: 16.88 kB / 0.9604 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of SimCode: time 3.21e-07/0.8627, allocations: 4 kB / 0.9604 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01237/0.8751, allocations: 1.547 MB / 0.962 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/0.8753, allocations: 182.9 kB / 0.9621 GB, free: 1.262 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.736, allocations: 1.031 kB / 0.9621 GB, free: 1.262 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.QuadraticLinear_res.mat does not exist to compare? outputFormat=mat