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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001945/0.001945, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002076/0.002076, allocations: 192.3 kB / 16.67 MB, free: 6.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 240.4 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.933/2.933, allocations: 482.4 MB / 0.7548 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 67.89 kB / 1.083 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2832, allocations: 162.2 MB / 1.241 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002364/0.2856, allocations: 1.276 MB / 1.243 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6789/0.9645, allocations: 147 MB / 1.386 GB, free: 7.949 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.961e-05/0.9646, allocations: 0 / 1.386 GB, free: 7.949 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 2.325e-05/0.9647, allocations: 2.219 kB / 1.386 GB, free: 7.949 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 4.774e-05/0.9647, allocations: 9.844 kB / 1.386 GB, free: 7.941 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.000435/0.9651, allocations: 91.23 kB / 1.386 GB, free: 7.895 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 7.337e-05/0.9652, allocations: 33.58 kB / 1.386 GB, free: 7.883 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 3.013e-05/0.9653, allocations: 1.406 kB / 1.386 GB, free: 7.883 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 3.964e-05/0.9653, allocations: 18.53 kB / 1.386 GB, free: 7.875 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 6.126e-05/0.9654, allocations: 16.47 kB / 1.386 GB, free: 7.867 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.9654, allocations: 2.594 kB / 1.386 GB, free: 7.867 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002675/0.9657, allocations: 83.53 kB / 1.386 GB, free: 7.828 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 1.74e-05/0.9657, allocations: 8.188 kB / 1.386 GB, free: 7.824 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 4.305e-05/0.9657, allocations: 19.94 kB / 1.386 GB, free: 7.812 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.9659, allocations: 63 kB / 1.387 GB, free: 7.797 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.9659, allocations: 0 / 1.387 GB, free: 7.797 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.072e-06/0.9659, allocations: 0 / 1.387 GB, free: 7.797 MB / 1.092 GB Notification: Performance of Transformations before backend: time 4.279e-06/0.9659, allocations: 0 / 1.387 GB, free: 7.797 MB / 1.092 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.0004288/0.9664, allocations: 355.5 kB / 1.387 GB, free: 7.43 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.9664, allocations: 9.344 kB / 1.387 GB, free: 7.43 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.673e-05/0.9665, allocations: 37.33 kB / 1.387 GB, free: 7.387 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001834/0.9667, allocations: 16.86 kB / 1.387 GB, free: 7.383 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.9668, allocations: 161.4 kB / 1.387 GB, free: 7.188 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.313e-05/0.9668, allocations: 6.656 kB / 1.387 GB, free: 7.184 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.9669, allocations: 11.77 kB / 1.387 GB, free: 7.176 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001241/0.967, allocations: 47.62 kB / 1.387 GB, free: 7.141 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.967, allocations: 3.938 kB / 1.387 GB, free: 7.137 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.25e-05/0.967, allocations: 5.094 kB / 1.387 GB, free: 7.133 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.558e-06/0.967, allocations: 0.9062 kB / 1.387 GB, free: 7.133 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.491e-05/0.9671, allocations: 17.03 kB / 1.387 GB, free: 7.129 MB / 1.092 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001995/0.9673, allocations: 171.6 kB / 1.387 GB, free: 6.926 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 9.702e-05/0.9674, allocations: 53.25 kB / 1.387 GB, free: 6.891 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.02e-05/0.9674, allocations: 16.73 kB / 1.387 GB, free: 6.879 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.9674, allocations: 0 / 1.387 GB, free: 6.879 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.9675, allocations: 36.69 kB / 1.387 GB, free: 6.836 MB / 1.092 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.9675, allocations: 1.25 kB / 1.387 GB, free: 6.836 MB / 1.092 GB Notification: Performance of matching and sorting (n=11): time 0.000742/0.9682, allocations: 375.9 kB / 1.388 GB, free: 6.531 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.9683, allocations: 52.88 kB / 1.388 GB, free: 6.469 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.221e-05/0.9684, allocations: 94.89 kB / 1.388 GB, free: 6.367 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.9684, allocations: 27.08 kB / 1.388 GB, free: 6.336 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 3.563e-05/0.9684, allocations: 80.14 kB / 1.388 GB, free: 6.254 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 5.317e-05/0.9685, allocations: 51.78 kB / 1.388 GB, free: 6.211 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.557e-05/0.9686, allocations: 28.56 kB / 1.388 GB, free: 6.188 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001472/0.9687, allocations: 319.3 kB / 1.388 GB, free: 5.871 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.837e-05/0.9688, allocations: 17.05 kB / 1.388 GB, free: 5.867 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.124e-05/0.9688, allocations: 36.72 kB / 1.389 GB, free: 5.844 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 9e-05/0.9689, allocations: 56.66 kB / 1.389 GB, free: 5.809 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.9689, allocations: 1.438 kB / 1.389 GB, free: 5.809 MB / 1.092 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001574/0.9691, allocations: 103.7 kB / 1.389 GB, free: 5.746 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.9691, allocations: 6 kB / 1.389 GB, free: 5.746 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.9691, allocations: 1.125 kB / 1.389 GB, free: 5.746 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.9691, allocations: 1.281 kB / 1.389 GB, free: 5.746 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.9692, allocations: 21.64 kB / 1.389 GB, free: 5.746 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.9693, allocations: 1.219 kB / 1.389 GB, free: 5.746 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.311e-05/0.9693, allocations: 2.094 kB / 1.389 GB, free: 5.746 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.9693, allocations: 6.625 kB / 1.389 GB, free: 5.742 MB / 1.092 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 9.263e-05/0.9694, allocations: 125.2 kB / 1.389 GB, free: 5.613 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.988e-05/0.9694, allocations: 16.31 kB / 1.389 GB, free: 5.602 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.9695, allocations: 8.812 kB / 1.389 GB, free: 5.594 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.9695, allocations: 4.062 kB / 1.389 GB, free: 5.594 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.9695, allocations: 0 / 1.389 GB, free: 5.594 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.9695, allocations: 0.5625 kB / 1.389 GB, free: 5.594 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.9697, allocations: 178.1 kB / 1.389 GB, free: 5.383 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.9697, allocations: 1.219 kB / 1.389 GB, free: 5.383 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/0.9698, allocations: 21.28 kB / 1.389 GB, free: 5.379 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.9698, allocations: 1.156 kB / 1.389 GB, free: 5.379 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.9698, allocations: 2.188 kB / 1.389 GB, free: 5.379 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.9698, allocations: 3.984 kB / 1.389 GB, free: 5.375 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.9698, allocations: 4 kB / 1.389 GB, free: 5.371 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002166/0.9701, allocations: 140.2 kB / 1.389 GB, free: 5.262 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 7.14e-05/0.9701, allocations: 84.02 kB / 1.389 GB, free: 5.164 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.9702, allocations: 1.562 kB / 1.389 GB, free: 5.164 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.9703, allocations: 6.844 kB / 1.389 GB, free: 5.16 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.369e-05/0.9703, allocations: 6.516 kB / 1.389 GB, free: 5.156 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.405e-06/0.9703, allocations: 2.375 kB / 1.389 GB, free: 5.156 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.956e-05/0.9703, allocations: 80.5 kB / 1.389 GB, free: 5.078 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9704, allocations: 0 / 1.389 GB, free: 5.078 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0002109/0.9706, allocations: 21.09 kB / 1.389 GB, free: 5.07 MB / 1.092 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.0004961/0.9711, allocations: 0.6633 MB / 1.39 GB, free: 4.438 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0001381/0.9712, allocations: 65.48 kB / 1.39 GB, free: 4.41 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.9712, allocations: 0 / 1.39 GB, free: 4.41 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 4.483e-05/0.9713, allocations: 36.48 kB / 1.39 GB, free: 4.395 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.9715, allocations: 5.438 kB / 1.39 GB, free: 4.395 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/0.973, allocations: 1.444 MB / 1.392 GB, free: 3.043 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/0.9733, allocations: 0.6852 MB / 1.392 GB, free: 2.344 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 5.572e-05/0.9734, allocations: 12.06 kB / 1.392 GB, free: 2.336 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.164e-05/0.9734, allocations: 15.69 kB / 1.392 GB, free: 2.324 MB / 1.092 GB Notification: Performance of SimCode: time 2.3e-07/0.9734, allocations: 0 / 1.392 GB, free: 2.324 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.9962, allocations: 1.701 MB / 1.394 GB, free: 1.438 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.51/8.506, allocations: 7.891 kB / 1.394 GB, free: 1.434 MB / 1.092 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches