Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.241/1.241, allocations: 251.5 MB / 266.7 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008691/0.0008691, allocations: 175.9 kB / 325.8 MB, free: 2.715 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205 MB / 0.576 GB, free: 20.98 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006923/0.0006922, allocations: 87.95 kB / 0.6797 GB, free: 14.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002905/0.0002906, allocations: 7.906 kB / 0.7933 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1432, allocations: 105.4 MB / 0.8962 GB, free: 68.11 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.0009501/0.1441, allocations: 1.009 MB / 0.8972 GB, free: 67.09 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.116/0.2601, allocations: 144.7 MB / 1.039 GB, free: 1.836 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.753e-05/0.2602, allocations: 4 kB / 1.039 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 1.883e-05/0.2602, allocations: 0 / 1.039 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 5.123e-05/0.2603, allocations: 7.969 kB / 1.039 GB, free: 1.824 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003599/0.2606, allocations: 79.64 kB / 1.039 GB, free: 1.746 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 5.703e-05/0.2607, allocations: 27.92 kB / 1.039 GB, free: 1.719 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 2.743e-05/0.2607, allocations: 3.938 kB / 1.039 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 3.449e-05/0.2608, allocations: 11.98 kB / 1.039 GB, free: 1.703 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.109e-05/0.2608, allocations: 23.91 kB / 1.039 GB, free: 1.68 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 1.133e-05/0.2608, allocations: 4 kB / 1.039 GB, free: 1.676 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002272/0.2611, allocations: 75.77 kB / 1.039 GB, free: 1.602 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 1.39e-05/0.2611, allocations: 11.98 kB / 1.039 GB, free: 1.59 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 2.854e-05/0.2611, allocations: 15.94 kB / 1.039 GB, free: 1.574 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.2613, allocations: 68.09 kB / 1.039 GB, free: 1.508 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2613, allocations: 0 / 1.039 GB, free: 1.508 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2613, allocations: 0 / 1.039 GB, free: 1.508 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.057e-06/0.2613, allocations: 0 / 1.039 GB, free: 1.508 MB / 0.6823 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.0003036/0.2616, allocations: 343.5 kB / 1.039 GB, free: 1.125 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2617, allocations: 16.03 kB / 1.039 GB, free: 1.109 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.073e-05/0.2617, allocations: 30.75 kB / 1.039 GB, free: 1.07 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001624/0.2619, allocations: 12.92 kB / 1.039 GB, free: 1.059 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.158e-05/0.2619, allocations: 164.1 kB / 1.039 GB, free: 0.8594 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.262, allocations: 8 kB / 1.039 GB, free: 0.8516 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.034e-05/0.262, allocations: 3.906 kB / 1.039 GB, free: 0.8477 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001089/0.2621, allocations: 61.59 kB / 1.039 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.2621, allocations: 0 / 1.039 GB, free: 0.7812 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.029e-05/0.2621, allocations: 4 kB / 1.039 GB, free: 0.7773 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.2621, allocations: 4 kB / 1.039 GB, free: 0.7734 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.929e-05/0.2622, allocations: 11.98 kB / 1.039 GB, free: 0.7617 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.2623, allocations: 169.5 kB / 1.04 GB, free: 0.5469 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 7.225e-05/0.2624, allocations: 46.56 kB / 1.04 GB, free: 0.4922 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.87e-05/0.2625, allocations: 20.84 kB / 1.04 GB, free: 480 kB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.2625, allocations: 3.938 kB / 1.04 GB, free: 476 kB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.2625, allocations: 42.5 kB / 1.04 GB, free: 424 kB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.072e-06/0.2625, allocations: 0 / 1.04 GB, free: 424 kB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.000626/0.2631, allocations: 362.4 kB / 1.04 GB, free: 8 kB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.2632, allocations: 51.41 kB / 1.04 GB, free: 15.95 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.404e-05/0.2633, allocations: 97.84 kB / 1.04 GB, free: 15.84 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.2633, allocations: 29.7 kB / 1.04 GB, free: 15.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 2.06e-05/0.2633, allocations: 84.27 kB / 1.04 GB, free: 15.72 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.2633, allocations: 43.39 kB / 1.04 GB, free: 15.68 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.2634, allocations: 17.72 kB / 1.04 GB, free: 15.65 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.2635, allocations: 318.7 kB / 1.041 GB, free: 15.33 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.336e-05/0.2635, allocations: 23.98 kB / 1.041 GB, free: 15.31 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.16e-05/0.2636, allocations: 35.58 kB / 1.041 GB, free: 15.27 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.837e-05/0.2636, allocations: 65.62 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.2636, allocations: 4 kB / 1.041 GB, free: 15.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001175/0.2638, allocations: 94.08 kB / 1.041 GB, free: 15.1 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.2638, allocations: 6.812 kB / 1.041 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2638, allocations: 4.156 kB / 1.041 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.959e-06/0.2638, allocations: 0 / 1.041 GB, free: 15.09 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.925e-05/0.2639, allocations: 23.92 kB / 1.041 GB, free: 15.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.2639, allocations: 7.984 kB / 1.041 GB, free: 15.06 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.889e-05/0.264, allocations: 4 kB / 1.041 GB, free: 15.05 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.264, allocations: 7.938 kB / 1.041 GB, free: 15.05 MB / 0.698 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.422e-05/0.2641, allocations: 121.8 kB / 1.041 GB, free: 14.92 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.2641, allocations: 0 / 1.041 GB, free: 14.92 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.037e-05/0.2641, allocations: 11.97 kB / 1.041 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.2641, allocations: 4 kB / 1.041 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.2641, allocations: 0 / 1.041 GB, free: 14.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2641, allocations: 3.984 kB / 1.041 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.2642, allocations: 177.6 kB / 1.041 GB, free: 14.67 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2643, allocations: 0 / 1.041 GB, free: 14.67 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.2644, allocations: 19.98 kB / 1.041 GB, free: 14.65 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2644, allocations: 0 / 1.041 GB, free: 14.65 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.2644, allocations: 4 kB / 1.041 GB, free: 14.65 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.2644, allocations: 4 kB / 1.041 GB, free: 14.64 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2644, allocations: 0 / 1.041 GB, free: 14.64 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.2646, allocations: 144.9 kB / 1.041 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.485e-05/0.2646, allocations: 77.2 kB / 1.041 GB, free: 14.39 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.2647, allocations: 8 kB / 1.041 GB, free: 14.38 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.452e-05/0.2647, allocations: 7.969 kB / 1.042 GB, free: 14.38 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.789e-05/0.2648, allocations: 4 kB / 1.042 GB, free: 14.37 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.958e-06/0.2648, allocations: 12 kB / 1.042 GB, free: 14.36 MB / 0.698 GB Notification: Performance of sorting global known variables: time 2.529e-05/0.2648, allocations: 79.22 kB / 1.042 GB, free: 14.28 MB / 0.698 GB Notification: Performance of sort global known variables: time 9e-08/0.2648, allocations: 0 / 1.042 GB, free: 14.28 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000171/0.265, allocations: 12 kB / 1.042 GB, free: 14.27 MB / 0.698 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 (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.000362/0.2654, allocations: 0.6749 MB / 1.042 GB, free: 13.56 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000101/0.2655, allocations: 52.03 kB / 1.042 GB, free: 13.51 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2655, allocations: 4 kB / 1.042 GB, free: 13.51 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 3.299e-05/0.2655, allocations: 27.92 kB / 1.042 GB, free: 13.48 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.2657, allocations: 16.42 kB / 1.042 GB, free: 13.46 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.2669, allocations: 1.455 MB / 1.044 GB, free: 11.93 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.2671, allocations: 0.6848 MB / 1.044 GB, free: 11.21 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 6.846e-05/0.2671, allocations: 12.66 kB / 1.044 GB, free: 11.2 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.392e-05/0.2672, allocations: 15.44 kB / 1.044 GB, free: 11.19 MB / 0.698 GB Notification: Performance of SimCode: time 2.1e-07/0.2672, allocations: 4 kB / 1.044 GB, free: 11.18 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1326/0.3998, allocations: 1.458 MB / 1.046 GB, free: 9.895 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001794/0.4, allocations: 231.2 kB / 1.046 GB, free: 9.641 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.428/1.828, allocations: 0 / 1.046 GB, free: 9.641 MB / 0.698 GB (rm -f Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_maint.7.0.x_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1)