Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",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.0009146/0.0009147, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.001081/0.001081, allocations: 177.3 kB / 15.94 MB, free: 228 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.382/1.382, allocations: 223.2 MB / 239.9 MB, free: 5.359 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.348/2.348, allocations: 390.3 MB / 0.6653 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.000341, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7683/0.7687, allocations: 142.3 MB / 0.9536 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001579/0.7703, allocations: 0.9825 MB / 0.9545 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1527/0.923, allocations: 124.3 MB / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.33e-05/0.9231, allocations: 0 / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.531e-05/0.9231, allocations: 0 / 1.076 GB, free: 2.586 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.24e-05/0.9232, allocations: 3.984 kB / 1.076 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.9236, allocations: 83.72 kB / 1.076 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.608e-05/0.9236, allocations: 19.97 kB / 1.076 GB, free: 2.48 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.147e-05/0.9237, allocations: 7.984 kB / 1.076 GB, free: 2.473 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.319e-05/0.9237, allocations: 23.92 kB / 1.076 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.774e-05/0.9238, allocations: 11.98 kB / 1.076 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.9238, allocations: 4 kB / 1.076 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002581/0.9241, allocations: 75.81 kB / 1.076 GB, free: 2.359 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.9241, allocations: 15.92 kB / 1.076 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.03e-05/0.9242, allocations: 29.7 kB / 1.076 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.9243, allocations: 42.2 kB / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.9243, allocations: 0 / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.003e-06/0.9243, allocations: 0 / 1.076 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.9243, allocations: 4 kB / 1.076 GB, free: 2.266 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003639/0.9247, allocations: 343.3 kB / 1.077 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.9247, allocations: 8.031 kB / 1.077 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.579e-05/0.9248, allocations: 34.56 kB / 1.077 GB, free: 1.832 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001905/0.925, allocations: 11.98 kB / 1.077 GB, free: 1.82 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.703e-05/0.9251, allocations: 159.1 kB / 1.077 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-06/0.9251, allocations: 4 kB / 1.077 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.9251, allocations: 8 kB / 1.077 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.9253, allocations: 61.55 kB / 1.077 GB, free: 1.547 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.9253, allocations: 3.953 kB / 1.077 GB, free: 1.543 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.228e-05/0.9253, allocations: 4 kB / 1.077 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/0.9253, allocations: 0 / 1.077 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.624e-05/0.9253, allocations: 11.98 kB / 1.077 GB, free: 1.527 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002705/0.9256, allocations: 173.5 kB / 1.077 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.535e-05/0.9257, allocations: 50.55 kB / 1.077 GB, free: 1.25 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.9257, allocations: 11.94 kB / 1.077 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.9258, allocations: 34.55 kB / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.233e-06/0.9258, allocations: 0 / 1.077 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0008302/0.9266, allocations: 366.3 kB / 1.077 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.9267, allocations: 55.41 kB / 1.078 GB, free: 0.7188 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.881e-05/0.9267, allocations: 97.8 kB / 1.078 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.692e-05/0.9267, allocations: 29.7 kB / 1.078 GB, free: 0.5781 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.932e-05/0.9268, allocations: 84.14 kB / 1.078 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.9268, allocations: 43.34 kB / 1.078 GB, free: 460 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.157e-06/0.9268, allocations: 0 / 1.078 GB, free: 460 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.9269, allocations: 318.8 kB / 1.078 GB, free: 132 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.089e-05/0.927, allocations: 16 kB / 1.078 GB, free: 116 kB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.458e-05/0.927, allocations: 37.64 kB / 1.078 GB, free: 72 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.319e-05/0.9271, allocations: 32.06 kB / 1.078 GB, free: 40 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.9271, allocations: 0 / 1.078 GB, free: 40 kB / 0.8262 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001386/0.9272, allocations: 89.66 kB / 1.078 GB, free: 15.95 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.9273, allocations: 8 kB / 1.078 GB, free: 15.94 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.9273, allocations: 3.953 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.9273, allocations: 0 / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.9274, allocations: 31.92 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.9274, allocations: 0 / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.136e-05/0.9275, allocations: 0 / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.9275, allocations: 4 kB / 1.078 GB, free: 15.9 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * 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 8.649e-05/0.9276, allocations: 119 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.427e-05/0.9276, allocations: 7.906 kB / 1.078 GB, free: 15.77 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.263e-05/0.9276, allocations: 11.97 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.9276, allocations: 3.953 kB / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.9276, allocations: 0 / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.9276, allocations: 0 / 1.078 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.9278, allocations: 173.7 kB / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.9278, allocations: 0 / 1.079 GB, free: 15.53 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/0.9279, allocations: 23.92 kB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.9279, allocations: 4 kB / 1.079 GB, free: 15.5 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.928, allocations: 8 kB / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.928, allocations: 0 / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.928, allocations: 4.656 kB / 1.079 GB, free: 15.49 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.9281, allocations: 127.7 kB / 1.079 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.153e-05/0.9282, allocations: 89.05 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.571e-05/0.9282, allocations: 4 kB / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.825e-05/0.9283, allocations: 0 / 1.079 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.728e-05/0.9284, allocations: 23.88 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.474e-06/0.9284, allocations: 4 kB / 1.079 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 2.829e-05/0.9284, allocations: 75.28 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9284, allocations: 0 / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0001929/0.9286, allocations: 16 kB / 1.079 GB, free: 15.12 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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.0004008/0.929, allocations: 0.6749 MB / 1.08 GB, free: 14.42 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.9291, allocations: 59.95 kB / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.9292, allocations: 0 / 1.08 GB, free: 14.36 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.717e-05/0.9292, allocations: 31.92 kB / 1.08 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.9294, allocations: 4 kB / 1.08 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009451/0.9303, allocations: 0.8167 MB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.9306, allocations: 0.6887 MB / 1.081 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 6.466e-05/0.9307, allocations: 8.672 kB / 1.081 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.267e-05/0.9307, allocations: 19.44 kB / 1.081 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.9307, allocations: 0 / 1.081 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01096/0.9417, allocations: 1.419 MB / 1.083 GB, free: 11.45 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/0.9419, allocations: 195.9 kB / 1.083 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.694/2.636, allocations: 0 / 1.083 GB, free: 11.21 MB / 0.8419 GB (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat does not exist to compare? outputFormat=mat