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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0008991/0.0008991, allocations: 98.03 kB / 15.36 MB, free: 0.7305 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.000988/0.0009881, allocations: 171.9 kB / 16.26 MB, free: 6.66 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.332/1.332, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.631/2.631, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003387/0.0003388, allocations: 13.97 kB / 0.9029 GB, free: 36.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3018/0.3021, allocations: 159.6 MB / 1.059 GB, free: 4.879 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.FixedResistances.Examples.CheckValve): time 0.02045/0.3226, allocations: 20.08 MB / 1.078 GB, free: 0.7266 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006278/0.3289, allocations: 4.916 MB / 1.083 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006918/0.3296, allocations: 15.88 kB / 1.083 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007414/0.3304, allocations: 222.7 kB / 1.083 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001982/0.3324, allocations: 0.7413 MB / 1.084 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.3341, allocations: 0.6516 MB / 1.085 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.002012/0.3361, allocations: 1.817 MB / 1.087 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006547/0.3368, allocations: 360.3 kB / 1.087 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001028/0.3378, allocations: 0.5173 MB / 1.087 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000753/0.3386, allocations: 454 kB / 1.088 GB, free: 7.039 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.3387, allocations: 23.94 kB / 1.088 GB, free: 7.016 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001108/0.3398, allocations: 0.6003 MB / 1.088 GB, free: 6.414 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.34, allocations: 107.5 kB / 1.089 GB, free: 6.309 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003539/0.3403, allocations: 288.2 kB / 1.089 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001168/0.3415, allocations: 0.8059 MB / 1.09 GB, free: 5.211 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3415, allocations: 4 kB / 1.09 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3415, allocations: 0 / 1.09 GB, free: 5.207 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.025e-05/0.3416, allocations: 4 kB / 1.09 GB, free: 5.203 MB / 0.8419 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.001494/0.3431, allocations: 0.8255 MB / 1.09 GB, free: 4.328 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3431, allocations: 11.97 kB / 1.09 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.3432, allocations: 74.66 kB / 1.09 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.3433, allocations: 68.19 kB / 1.091 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006143/0.344, allocations: 455 kB / 1.091 GB, free: 3.684 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.616e-05/0.344, allocations: 24.66 kB / 1.091 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.866e-05/0.3441, allocations: 32 kB / 1.091 GB, free: 3.625 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006391/0.3447, allocations: 318 kB / 1.091 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.3447, allocations: 0 / 1.091 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.407e-05/0.3448, allocations: 16 kB / 1.091 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.3448, allocations: 7.938 kB / 1.091 GB, free: 3.285 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006264/0.3454, allocations: 286.4 kB / 1.092 GB, free: 3.008 MB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002097/0.3475, allocations: 1.36 MB / 1.093 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004884/0.348, allocations: 262.5 kB / 1.093 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.3483, allocations: 140.8 kB / 1.093 GB, free: 1.117 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003885/0.3487, allocations: 0.4947 MB / 1.094 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.3487, allocations: 38.59 kB / 1.094 GB, free: 476 kB / 0.8419 GB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.3488, allocations: 0 / 1.094 GB, free: 476 kB / 0.8419 GB Notification: Performance of matching and sorting (n=25): time 0.001672/0.3504, allocations: 0.5904 MB / 1.094 GB, free: 15.85 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.3505, allocations: 67.28 kB / 1.095 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004534/0.3509, allocations: 466.2 kB / 1.095 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.351, allocations: 33.7 kB / 1.095 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.3511, allocations: 240.4 kB / 1.095 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.081e-05/0.3512, allocations: 90.73 kB / 1.095 GB, free: 14.93 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.883e-05/0.3513, allocations: 33.7 kB / 1.095 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3514, allocations: 354.8 kB / 1.096 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003019/0.3517, allocations: 131.9 kB / 1.096 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003498/0.3521, allocations: 197 kB / 1.096 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/0.3527, allocations: 289.2 kB / 1.096 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.3527, allocations: 3.938 kB / 1.096 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001451/0.3542, allocations: 0.5015 MB / 1.097 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.942e-05/0.3542, allocations: 106.7 kB / 1.097 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3542, allocations: 0 / 1.097 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003281/0.3546, allocations: 60.8 kB / 1.097 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.3549, allocations: 71.89 kB / 1.097 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003804/0.3553, allocations: 0.5601 MB / 1.098 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000447/0.3558, allocations: 71.84 kB / 1.098 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.458e-05/0.3558, allocations: 11.98 kB / 1.098 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.406e-06/0.3558, allocations: 5.562 kB / 1.098 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00068/0.3565, allocations: 337.6 kB / 1.098 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.924e-06/0.3565, allocations: 0 / 1.098 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-06/0.3565, allocations: 0 / 1.098 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/0.3569, allocations: 87.88 kB / 1.098 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.3569, allocations: 4 kB / 1.098 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003979/0.3573, allocations: 65.83 kB / 1.098 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.544e-05/0.3573, allocations: 8 kB / 1.098 GB, free: 11.98 MB / 0.8575 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.0001978/0.3575, allocations: 257 kB / 1.098 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.3576, allocations: 47.42 kB / 1.098 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008952/0.3585, allocations: 448.4 kB / 1.099 GB, free: 11.22 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.3585, allocations: 4 kB / 1.099 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3586, allocations: 0 / 1.099 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.3586, allocations: 7.922 kB / 1.099 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.3599, allocations: 0.9678 MB / 1.1 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.3599, allocations: 4 kB / 1.1 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002234/0.3602, allocations: 55.91 kB / 1.1 GB, free: 10.11 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.3603, allocations: 45.02 kB / 1.1 GB, free: 10.06 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.093e-05/0.3604, allocations: 11.98 kB / 1.1 GB, free: 10.05 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002976/0.3607, allocations: 0.5563 MB / 1.1 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3607, allocations: 0 / 1.1 GB, free: 9.469 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007541/0.3614, allocations: 0.5145 MB / 1.101 GB, free: 8.922 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.3616, allocations: 164.3 kB / 1.101 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.232e-05/0.3617, allocations: 4 kB / 1.101 GB, free: 8.738 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003615/0.362, allocations: 43.95 kB / 1.101 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.567e-05/0.3621, allocations: 31.77 kB / 1.101 GB, free: 8.664 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.3621, allocations: 8 kB / 1.101 GB, free: 8.656 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0003053/0.3624, allocations: 322.9 kB / 1.101 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3624, allocations: 0 / 1.101 GB, free: 8.344 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0006648/0.3631, allocations: 255.4 kB / 1.102 GB, free: 8.094 MB / 0.8575 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.001338/0.3645, allocations: 1.186 MB / 1.103 GB, free: 6.875 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001084/0.3655, allocations: 493.7 kB / 1.103 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3656, allocations: 0 / 1.103 GB, free: 6.395 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003845/0.366, allocations: 184 kB / 1.104 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.3674, allocations: 253.4 kB / 1.104 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005877/0.3733, allocations: 4.306 MB / 1.108 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003534/0.3737, allocations: 0.8668 MB / 1.109 GB, free: 0.6562 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003887/0.374, allocations: 120.2 kB / 1.109 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.3743, allocations: 171.4 kB / 1.109 GB, free: 380 kB / 0.8575 GB Notification: Performance of SimCode: time 3.21e-07/0.3743, allocations: 0 / 1.109 GB, free: 380 kB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06576/0.44, allocations: 14.43 MB / 1.123 GB, free: 2.277 MB / 0.8731 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003138/0.4404, allocations: 279.8 kB / 1.123 GB, free: 1.898 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.138/2.578, allocations: 0.5 kB / 1.123 GB, free: 1.898 MB / 0.8731 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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