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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.01/2.01, allocations: 387.1 MB / 399.7 MB, free: 9.492 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 172.9 kB / 492.3 MB, free: 0.6445 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 221.3 MB / 0.7871 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008268/0.000827, allocations: 95.73 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.281e-05/3.283e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2014/0.2015, allocations: 142.4 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7006/0.9021, allocations: 149.2 MB / 1.358 GB, free: 19.14 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001728/0.9023, allocations: 77.25 kB / 1.358 GB, free: 19.14 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003077/0.9054, allocations: 1.084 MB / 1.359 GB, free: 34.78 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9054, allocations: 0 / 1.359 GB, free: 34.78 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.726e-06/0.9054, allocations: 0 / 1.359 GB, free: 34.78 MB / 0.8386 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.0003179/0.9057, allocations: 383 kB / 1.36 GB, free: 34.42 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.9058, allocations: 7.688 kB / 1.36 GB, free: 34.42 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.957e-05/0.9058, allocations: 35.61 kB / 1.36 GB, free: 34.38 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.221e-05/0.9059, allocations: 0 / 1.36 GB, free: 34.38 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.104e-05/0.9059, allocations: 180 kB / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.654e-06/0.906, allocations: 3.938 kB / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.128e-05/0.906, allocations: 0 / 1.36 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.9061, allocations: 65.41 kB / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.9061, allocations: 0 / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.9061, allocations: 0 / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.9061, allocations: 0 / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.405e-05/0.9062, allocations: 32.92 kB / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004099/0.9066, allocations: 324.7 kB / 1.36 GB, free: 33.86 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.21e-05/0.9067, allocations: 50.5 kB / 1.36 GB, free: 33.83 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.541e-05/0.9067, allocations: 23.84 kB / 1.36 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000141/0.9069, allocations: 101.1 kB / 1.36 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.9069, allocations: 39.55 kB / 1.361 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.9069, allocations: 0 / 1.361 GB, free: 33.69 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001635/0.9071, allocations: 72.16 kB / 1.361 GB, free: 33.65 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.85e-05/0.9071, allocations: 52.91 kB / 1.361 GB, free: 33.59 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.288e-05/0.9072, allocations: 118.7 kB / 1.361 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.738e-06/0.9072, allocations: 27.25 kB / 1.361 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.992e-05/0.9072, allocations: 94 kB / 1.361 GB, free: 33.38 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.9072, allocations: 7.812 kB / 1.361 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.9073, allocations: 7.031 kB / 1.361 GB, free: 33.37 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 5.095e-05/0.9073, allocations: 318 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.069e-05/0.9074, allocations: 15.34 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.578e-05/0.9074, allocations: 16.58 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.154e-05/0.9074, allocations: 18.41 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.9074, allocations: 0 / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.482e-05/0.9075, allocations: 62.95 kB / 1.361 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.9075, allocations: 6.312 kB / 1.361 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.676e-06/0.9076, allocations: 0 / 1.361 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.9076, allocations: 0 / 1.361 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.9077, allocations: 25.03 kB / 1.361 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.9077, allocations: 7.781 kB / 1.361 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.402e-05/0.9078, allocations: 20.88 kB / 1.361 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.9078, allocations: 4.516 kB / 1.361 GB, free: 33.01 MB / 0.8386 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 () * 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 4.02e-05/0.9079, allocations: 101.7 kB / 1.361 GB, free: 32.9 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.422e-05/0.9079, allocations: 11.75 kB / 1.361 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001471/0.9081, allocations: 79.28 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.9081, allocations: 0 / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.9081, allocations: 0.6094 kB / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.9081, allocations: 0 / 1.362 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.9082, allocations: 186.4 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9082, allocations: 0.7031 kB / 1.362 GB, free: 32.67 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.9083, allocations: 24.75 kB / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.9083, allocations: 0 / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.9084, allocations: 4.625 kB / 1.362 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.9084, allocations: 12.39 kB / 1.362 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.9084, allocations: 0 / 1.362 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001125/0.9085, allocations: 167.4 kB / 1.362 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.999e-05/0.9085, allocations: 88.73 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.9085, allocations: 3.094 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.9086, allocations: 21.72 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.46e-05/0.9087, allocations: 6.922 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.9087, allocations: 0 / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.705e-05/0.9087, allocations: 100.6 kB / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9087, allocations: 0 / 1.362 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001908/0.9089, allocations: 11.59 kB / 1.362 GB, free: 32.33 MB / 0.8386 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 () * 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.0003348/0.9093, allocations: 0.7051 MB / 1.363 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.75e-05/0.9094, allocations: 33.92 kB / 1.363 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.9094, allocations: 3.688 kB / 1.363 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 3.195e-05/0.9094, allocations: 14.81 kB / 1.363 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.9096, allocations: 16.58 kB / 1.363 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003194/0.9099, allocations: 133.3 kB / 1.363 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.9101, allocations: 0.6962 MB / 1.364 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.101e-05/0.9102, allocations: 0 / 1.364 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.558e-05/0.9102, allocations: 20.7 kB / 1.364 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of SimCode: time 4.31e-07/0.9102, allocations: 0 / 1.364 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01104/0.9213, allocations: 1.535 MB / 1.365 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001324/0.9214, allocations: 151 kB / 1.365 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.312/2.234, allocations: 0 / 1.365 GB, free: 30.43 MB / 0.8386 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