Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.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.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve",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.007423/0.007423, allocations: 95.31 kB / 15.73 MB, free: 6.051 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.002057/0.002057, allocations: 204.8 kB / 16.68 MB, free: 5.973 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.893/2.893, allocations: 482.4 MB / 0.7548 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 63.91 kB / 1.083 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2771, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.5169/0.7941, allocations: 20.76 MB / 1.262 GB, free: 4.543 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.005604/0.7997, allocations: 4.961 MB / 1.267 GB, free: 1.488 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006206/0.8004, allocations: 17.78 kB / 1.267 GB, free: 1.48 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006647/0.8011, allocations: 274.5 kB / 1.267 GB, free: 1.305 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.001738/0.8028, allocations: 0.8079 MB / 1.268 GB, free: 0.8398 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001679/0.8045, allocations: 0.7053 MB / 1.268 GB, free: 0.4961 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001581/0.8061, allocations: 1.374 MB / 1.27 GB, free: 15.88 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006898/0.8068, allocations: 449.7 kB / 1.27 GB, free: 15.7 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001204/0.808, allocations: 0.6485 MB / 1.271 GB, free: 15.41 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000689/0.8087, allocations: 438.5 kB / 1.271 GB, free: 15.22 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 9.096e-05/0.8088, allocations: 36.78 kB / 1.271 GB, free: 15.22 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.81, allocations: 0.6295 MB / 1.272 GB, free: 15.02 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.8101, allocations: 131 kB / 1.272 GB, free: 14.94 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.0003373/0.8105, allocations: 290.8 kB / 1.272 GB, free: 14.77 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.8117, allocations: 0.8459 MB / 1.273 GB, free: 14.45 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.8117, allocations: 0 / 1.273 GB, free: 14.45 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.102e-06/0.8117, allocations: 0 / 1.273 GB, free: 14.45 MB / 1.014 GB Notification: Performance of Transformations before backend: time 1.234e-05/0.8117, allocations: 0 / 1.273 GB, free: 14.45 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001606/0.8133, allocations: 0.9441 MB / 1.274 GB, free: 13.74 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.8134, allocations: 14.58 kB / 1.274 GB, free: 13.74 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.767e-05/0.8135, allocations: 66.47 kB / 1.274 GB, free: 13.68 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.8136, allocations: 71.64 kB / 1.274 GB, free: 13.64 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007374/0.8143, allocations: 482.5 kB / 1.275 GB, free: 13.3 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.8144, allocations: 28.34 kB / 1.275 GB, free: 13.29 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.353e-05/0.8144, allocations: 38.03 kB / 1.275 GB, free: 13.27 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006626/0.8151, allocations: 306.2 kB / 1.275 GB, free: 13.15 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.8151, allocations: 0 / 1.275 GB, free: 13.15 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.403e-05/0.8152, allocations: 11.19 kB / 1.275 GB, free: 13.14 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.8152, allocations: 7.625 kB / 1.275 GB, free: 13.14 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006691/0.8158, allocations: 263.8 kB / 1.275 GB, free: 13.07 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002251/0.8181, allocations: 1.331 MB / 1.276 GB, free: 12.16 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.8187, allocations: 262.2 kB / 1.277 GB, free: 12.06 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.819, allocations: 132.4 kB / 1.277 GB, free: 12.02 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004606/0.8195, allocations: 0.4983 MB / 1.277 GB, free: 11.44 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.185e-05/0.8195, allocations: 41.84 kB / 1.277 GB, free: 11.39 MB / 1.014 GB Notification: Performance of pre-optimization done (n=25): time 1.413e-06/0.8195, allocations: 0 / 1.277 GB, free: 11.39 MB / 1.014 GB Notification: Performance of matching and sorting (n=25): time 0.001837/0.8213, allocations: 0.5631 MB / 1.278 GB, free: 11.13 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.8214, allocations: 59.19 kB / 1.278 GB, free: 11.07 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005151/0.8219, allocations: 463.1 kB / 1.278 GB, free: 10.85 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 3.877e-05/0.822, allocations: 33.02 kB / 1.278 GB, free: 10.82 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002055/0.8222, allocations: 246.3 kB / 1.279 GB, free: 10.62 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 8.364e-05/0.8223, allocations: 92.84 kB / 1.279 GB, free: 10.54 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.8224, allocations: 80.95 kB / 1.279 GB, free: 10.5 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.8226, allocations: 354.5 kB / 1.279 GB, free: 10.17 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003414/0.8229, allocations: 126 kB / 1.279 GB, free: 10.12 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003873/0.8233, allocations: 174.4 kB / 1.279 GB, free: 10.04 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006553/0.824, allocations: 280.3 kB / 1.28 GB, free: 9.926 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.824, allocations: 0 / 1.28 GB, free: 9.926 MB / 1.014 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001633/0.8257, allocations: 495.7 kB / 1.28 GB, free: 9.754 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.197e-05/0.8257, allocations: 7.375 kB / 1.28 GB, free: 9.754 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.8257, allocations: 0 / 1.28 GB, free: 9.754 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003388/0.826, allocations: 58.86 kB / 1.28 GB, free: 9.734 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003493/0.8264, allocations: 70.59 kB / 1.28 GB, free: 9.727 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004839/0.8269, allocations: 0.5616 MB / 1.281 GB, free: 9.184 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004291/0.8273, allocations: 65.73 kB / 1.281 GB, free: 9.152 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.87e-05/0.8274, allocations: 11.97 kB / 1.281 GB, free: 9.152 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004398/0.8278, allocations: 243.5 kB / 1.281 GB, free: 9.016 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000379/0.8282, allocations: 180.9 kB / 1.281 GB, free: 8.926 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006512/0.8289, allocations: 263.9 kB / 1.282 GB, free: 8.82 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.823e-06/0.8289, allocations: 1.125 kB / 1.282 GB, free: 8.82 MB / 1.014 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0009143/0.8298, allocations: 367.5 kB / 1.282 GB, free: 8.68 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 8.105e-06/0.8298, allocations: 6.656 kB / 1.282 GB, free: 8.68 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.8298, allocations: 4.656 kB / 1.282 GB, free: 8.676 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.025e-06/0.8298, allocations: 1.688 kB / 1.282 GB, free: 8.676 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000406/0.8303, allocations: 81.3 kB / 1.282 GB, free: 8.668 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.8303, allocations: 2.031 kB / 1.282 GB, free: 8.668 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004389/0.8307, allocations: 47.34 kB / 1.282 GB, free: 8.652 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.228e-05/0.8308, allocations: 19.12 kB / 1.282 GB, free: 8.645 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001605/0.8309, allocations: 198.9 kB / 1.282 GB, free: 8.449 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.831, allocations: 50.33 kB / 1.282 GB, free: 8.422 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.8322, allocations: 425.2 kB / 1.283 GB, free: 8.238 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.8322, allocations: 4.25 kB / 1.283 GB, free: 8.238 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.8322, allocations: 0 / 1.283 GB, free: 8.238 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.8322, allocations: 3.062 kB / 1.283 GB, free: 8.238 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.8338, allocations: 0.9507 MB / 1.284 GB, free: 7.668 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.8339, allocations: 1.406 kB / 1.284 GB, free: 7.668 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002406/0.8341, allocations: 52.42 kB / 1.284 GB, free: 7.66 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000163/0.8343, allocations: 43.77 kB / 1.284 GB, free: 7.645 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.8343, allocations: 9.312 kB / 1.284 GB, free: 7.641 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004186/0.8347, allocations: 0.5559 MB / 1.284 GB, free: 7.102 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.8347, allocations: 5.859 kB / 1.284 GB, free: 7.098 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008786/0.8356, allocations: 492.3 kB / 1.285 GB, free: 6.809 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000179/0.8358, allocations: 155.9 kB / 1.285 GB, free: 6.672 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.37e-05/0.8359, allocations: 7.281 kB / 1.285 GB, free: 6.668 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003541/0.8362, allocations: 29.38 kB / 1.285 GB, free: 6.66 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.798e-05/0.8363, allocations: 29.09 kB / 1.285 GB, free: 6.648 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.8364, allocations: 10.69 kB / 1.285 GB, free: 6.648 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003771/0.8368, allocations: 326.9 kB / 1.285 GB, free: 6.492 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8368, allocations: 1.594 kB / 1.285 GB, free: 6.492 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0006678/0.8374, allocations: 252.2 kB / 1.286 GB, free: 6.438 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001612/0.8391, allocations: 1.194 MB / 1.287 GB, free: 5.543 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00121/0.8403, allocations: 455.2 kB / 1.287 GB, free: 5.434 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.8403, allocations: 1.281 kB / 1.287 GB, free: 5.434 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000439/0.8407, allocations: 171.7 kB / 1.287 GB, free: 5.387 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.8418, allocations: 212 kB / 1.288 GB, free: 5.32 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006825/0.8487, allocations: 4.028 MB / 1.292 GB, free: 3.059 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005192/0.8492, allocations: 0.8591 MB / 1.292 GB, free: 2.344 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0004138/0.8496, allocations: 117.3 kB / 1.292 GB, free: 2.312 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002521/0.8499, allocations: 172.4 kB / 1.293 GB, free: 2.188 MB / 1.014 GB Notification: Performance of SimCode: time 3.4e-07/0.8499, allocations: 0 / 1.293 GB, free: 2.188 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0424/0.8923, allocations: 15.05 MB / 1.307 GB, free: 0.6328 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.88, allocations: 9.375 kB / 1.307 GB, free: 0.625 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve.fmu > Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches