Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_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.0008338/0.0008339, allocations: 84.38 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.0009622/0.0009623, 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.376/1.376, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.577/2.577, allocations: 409.4 MB / 0.684 GB, free: 0.918 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003685/0.0003686, allocations: 12 kB / 0.8378 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7338/0.7342, allocations: 146.8 MB / 0.9811 GB, free: 6.289 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001206/0.7354, allocations: 0.9917 MB / 0.9821 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.1433/0.8787, allocations: 133.5 MB / 1.112 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.897e-05/0.8788, allocations: 0 / 1.112 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 2.324e-05/0.8789, allocations: 3.938 kB / 1.112 GB, free: 15.44 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 6.428e-05/0.8789, allocations: 4 kB / 1.112 GB, free: 15.43 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003326/0.8793, allocations: 79.62 kB / 1.113 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 6.887e-05/0.8793, allocations: 27.92 kB / 1.113 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 5.225e-05/0.8794, allocations: 0 / 1.113 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 4.017e-05/0.8794, allocations: 19.92 kB / 1.113 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 6.575e-05/0.8795, allocations: 15.92 kB / 1.113 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.495e-05/0.8795, allocations: 4 kB / 1.113 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.8798, allocations: 79.75 kB / 1.113 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 9.548e-06/0.8798, allocations: 0 / 1.113 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.8799, allocations: 29.7 kB / 1.113 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.88, allocations: 54.14 kB / 1.113 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.88, allocations: 0 / 1.113 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.723e-06/0.88, allocations: 0 / 1.113 GB, free: 15.12 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.88, allocations: 0 / 1.113 GB, free: 15.12 MB / 0.8731 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.0003555/0.8804, allocations: 347.2 kB / 1.113 GB, free: 14.74 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.8804, allocations: 12.03 kB / 1.113 GB, free: 14.73 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.112e-05/0.8804, allocations: 34.56 kB / 1.113 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.8806, allocations: 8 kB / 1.113 GB, free: 14.68 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001099/0.8807, allocations: 163.1 kB / 1.113 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.8808, allocations: 11.89 kB / 1.113 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.2e-05/0.8808, allocations: 8 kB / 1.113 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001182/0.8809, allocations: 45.67 kB / 1.113 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.8809, allocations: 0 / 1.113 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.8809, allocations: 8 kB / 1.113 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.881, allocations: 0 / 1.113 GB, free: 14.4 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.542e-05/0.881, allocations: 23.95 kB / 1.113 GB, free: 14.38 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.8812, allocations: 169.5 kB / 1.114 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 8.682e-05/0.8813, allocations: 50.5 kB / 1.114 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.808e-05/0.8813, allocations: 16.81 kB / 1.114 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 8.756e-06/0.8813, allocations: 0 / 1.114 GB, free: 14.08 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.935e-05/0.8814, allocations: 46.55 kB / 1.114 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.8814, allocations: 0 / 1.114 GB, free: 14.03 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.0007039/0.8821, allocations: 370.3 kB / 1.114 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.294e-05/0.8821, allocations: 51.41 kB / 1.114 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.498e-05/0.8822, allocations: 93.86 kB / 1.114 GB, free: 13.45 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.8823, allocations: 33.83 kB / 1.114 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 3.913e-05/0.8823, allocations: 80.14 kB / 1.114 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/0.8823, allocations: 39.36 kB / 1.114 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.092e-05/0.8824, allocations: 8 kB / 1.114 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.8825, allocations: 318.8 kB / 1.115 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.363e-05/0.8825, allocations: 20 kB / 1.115 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.849e-05/0.8826, allocations: 29.7 kB / 1.115 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.51e-05/0.8826, allocations: 24 kB / 1.115 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.8827, allocations: 11.94 kB / 1.115 GB, free: 12.87 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001353/0.8828, allocations: 93.61 kB / 1.115 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.8828, allocations: 5.094 kB / 1.115 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.8828, allocations: 0 / 1.115 GB, free: 12.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.8829, allocations: 7.938 kB / 1.115 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.883, allocations: 19.98 kB / 1.115 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.883, allocations: 4.703 kB / 1.115 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.998e-05/0.883, allocations: 4 kB / 1.115 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.883, allocations: 4 kB / 1.115 GB, free: 12.73 MB / 0.8731 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 7.858e-05/0.8831, allocations: 117.8 kB / 1.115 GB, free: 12.61 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.8831, allocations: 11.86 kB / 1.115 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.8832, allocations: 7.969 kB / 1.115 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.8832, allocations: 4 kB / 1.115 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.8832, allocations: 0 / 1.115 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.8832, allocations: 3.938 kB / 1.115 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001252/0.8833, allocations: 173.6 kB / 1.115 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.8833, allocations: 0 / 1.115 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.8835, allocations: 27.94 kB / 1.115 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.8835, allocations: 0 / 1.115 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.415e-06/0.8835, allocations: 4 kB / 1.115 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.8835, allocations: 4 kB / 1.115 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.8835, allocations: 0 / 1.115 GB, free: 12.33 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.8837, allocations: 125 kB / 1.115 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.105e-05/0.8838, allocations: 89.05 kB / 1.115 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.8838, allocations: 3.953 kB / 1.115 GB, free: 12.08 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.843e-05/0.8839, allocations: 8 kB / 1.115 GB, free: 12.07 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.705e-05/0.8839, allocations: 11.92 kB / 1.115 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.8839, allocations: 4 kB / 1.115 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.007e-05/0.884, allocations: 79.28 kB / 1.115 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.884, allocations: 0 / 1.115 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0001952/0.8842, allocations: 16 kB / 1.115 GB, free: 11.96 MB / 0.8731 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.000477/0.8847, allocations: 0.671 MB / 1.116 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001245/0.8848, allocations: 48.45 kB / 1.116 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8848, allocations: 4 kB / 1.116 GB, free: 11.21 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.328e-05/0.8849, allocations: 35.86 kB / 1.116 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002253/0.8851, allocations: 8.109 kB / 1.116 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009556/0.8861, allocations: 0.6684 MB / 1.117 GB, free: 10.45 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004032/0.8865, allocations: 0.6848 MB / 1.118 GB, free: 9.734 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.324e-05/0.8866, allocations: 16.64 kB / 1.118 GB, free: 9.719 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.8866, allocations: 15.5 kB / 1.118 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of SimCode: time 2.91e-07/0.8866, allocations: 0 / 1.118 GB, free: 9.703 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01159/0.8982, allocations: 1.447 MB / 1.119 GB, free: 8.438 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001825/0.8984, allocations: 207.4 kB / 1.119 GB, free: 8.199 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.687, allocations: 3.125 kB / 1.119 GB, free: 8.199 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat does not exist to compare? outputFormat=mat