Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: translateModel(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 108 kB / 15.99 MB, free: 5.906 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.001683/0.001684, allocations: 191.4 kB / 16.91 MB, free: 5.758 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.259/1.259, allocations: 222.9 MB / 240.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002213/0.002214, allocations: 290.8 kB / 291 MB, free: 14.66 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9039/0.9039, allocations: 169.2 MB / 0.4985 GB, free: 4.723 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001627/0.001627, allocations: 90.02 kB / 0.5953 GB, free: 4.441 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1696, allocations: 86.98 MB / 0.6803 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve): time 0.01976/0.1894, allocations: 20.6 MB / 0.7004 GB, free: 8.781 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006555/0.196, allocations: 4.932 MB / 0.7052 GB, free: 3.836 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004437/0.1964, allocations: 15.88 kB / 0.7052 GB, free: 3.82 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0006914/0.1972, allocations: 226.7 kB / 0.7054 GB, free: 3.598 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001638/0.1988, allocations: 0.7659 MB / 0.7062 GB, free: 2.828 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0016/0.2004, allocations: 0.646 MB / 0.7068 GB, free: 2.191 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001521/0.202, allocations: 1.384 MB / 0.7082 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005406/0.2025, allocations: 432.7 kB / 0.7086 GB, free: 380 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3161/0.5186, allocations: 0.5721 MB / 0.7091 GB, free: 38.31 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000967/0.5196, allocations: 456.5 kB / 0.7096 GB, free: 38.31 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.616e-05/0.5197, allocations: 38.47 kB / 0.7096 GB, free: 38.31 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.5209, allocations: 0.6409 MB / 0.7102 GB, free: 38.31 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.5211, allocations: 128 kB / 0.7104 GB, free: 38.31 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003277/0.5214, allocations: 286.1 kB / 0.7106 GB, free: 38.28 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007472/0.5222, allocations: 0.6091 MB / 0.7112 GB, free: 38.25 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.5222, allocations: 3.281 kB / 0.7112 GB, free: 38.25 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.523e-06/0.5222, allocations: 0.75 kB / 0.7112 GB, free: 38.25 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.879e-06/0.5222, allocations: 3.328 kB / 0.7112 GB, free: 38.25 MB / 0.545 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.001293/0.5235, allocations: 0.9132 MB / 0.7121 GB, free: 37.7 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.5236, allocations: 8.844 kB / 0.7121 GB, free: 37.7 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.5237, allocations: 70.22 kB / 0.7122 GB, free: 37.66 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004468/0.5241, allocations: 448.8 kB / 0.7126 GB, free: 37.4 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.5242, allocations: 26.03 kB / 0.7127 GB, free: 37.4 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.5242, allocations: 40.75 kB / 0.7127 GB, free: 37.39 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005504/0.5248, allocations: 312.1 kB / 0.713 GB, free: 37.36 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.5248, allocations: 0 / 0.713 GB, free: 37.36 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.5248, allocations: 15.59 kB / 0.713 GB, free: 37.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.5249, allocations: 7.812 kB / 0.713 GB, free: 37.36 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000524/0.5254, allocations: 255.7 kB / 0.7133 GB, free: 37.36 MB / 0.545 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.001688/0.5271, allocations: 1.342 MB / 0.7146 GB, free: 36.69 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004314/0.5275, allocations: 259.5 kB / 0.7148 GB, free: 36.67 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/0.5278, allocations: 132.7 kB / 0.7149 GB, free: 36.66 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003337/0.5281, allocations: 0.4953 MB / 0.7154 GB, free: 36.1 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.996e-05/0.5281, allocations: 33.56 kB / 0.7155 GB, free: 36.06 MB / 0.545 GB Notification: Performance of pre-optimization done (n=25): time 1.342e-06/0.5282, allocations: 3.812 kB / 0.7155 GB, free: 36.06 MB / 0.545 GB Notification: Performance of matching and sorting (n=25): time 0.001545/0.5297, allocations: 0.5563 MB / 0.716 GB, free: 35.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.399e-05/0.5297, allocations: 57.73 kB / 0.7161 GB, free: 35.84 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.5301, allocations: 461.9 kB / 0.7165 GB, free: 35.71 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.5301, allocations: 34.95 kB / 0.7165 GB, free: 35.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.5303, allocations: 245.8 kB / 0.7168 GB, free: 35.57 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.5303, allocations: 91.12 kB / 0.7169 GB, free: 35.51 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.801e-05/0.5304, allocations: 74.47 kB / 0.7169 GB, free: 35.5 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.095e-05/0.5305, allocations: 362.1 kB / 0.7173 GB, free: 35.18 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002515/0.5308, allocations: 118.5 kB / 0.7174 GB, free: 35.17 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002966/0.5311, allocations: 185.2 kB / 0.7176 GB, free: 35.12 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005116/0.5316, allocations: 279 kB / 0.7178 GB, free: 35.09 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5316, allocations: 0 / 0.7178 GB, free: 35.09 MB / 0.545 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001331/0.5329, allocations: 497.4 kB / 0.7183 GB, free: 35.01 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.533, allocations: 8.312 kB / 0.7183 GB, free: 35.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.533, allocations: 0 / 0.7183 GB, free: 35.01 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003365/0.5333, allocations: 52.75 kB / 0.7184 GB, free: 35 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.5337, allocations: 69.77 kB / 0.7184 GB, free: 35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002894/0.534, allocations: 0.5645 MB / 0.719 GB, free: 34.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.5344, allocations: 60.33 kB / 0.719 GB, free: 34.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.5344, allocations: 13.56 kB / 0.719 GB, free: 34.46 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000342/0.5348, allocations: 254.8 kB / 0.7193 GB, free: 34.37 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002775/0.5351, allocations: 179.7 kB / 0.7195 GB, free: 34.32 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004834/0.5356, allocations: 262.5 kB / 0.7197 GB, free: 34.29 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.212e-06/0.5356, allocations: 0 / 0.7197 GB, free: 34.29 MB / 0.545 GB Notification: Performance of matching and sorting (n=37) (initialization_lambda0): time 0.0006391/0.5362, allocations: 368.3 kB / 0.7201 GB, free: 34.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.263e-06/0.5362, allocations: 5.219 kB / 0.7201 GB, free: 34.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.864e-06/0.5363, allocations: 0 / 0.7201 GB, free: 34.23 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.328e-06/0.5363, allocations: 9.516 kB / 0.7201 GB, free: 34.22 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003581/0.5366, allocations: 78.19 kB / 0.7202 GB, free: 34.22 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.5366, allocations: 3 kB / 0.7202 GB, free: 34.22 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004086/0.537, allocations: 56.5 kB / 0.7202 GB, free: 34.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.5371, allocations: 22.14 kB / 0.7202 GB, free: 34.21 MB / 0.545 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 9.583e-05/0.5372, allocations: 195.8 kB / 0.7204 GB, free: 34.03 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.118e-05/0.5373, allocations: 48.97 kB / 0.7205 GB, free: 34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007877/0.5381, allocations: 418.4 kB / 0.7209 GB, free: 33.94 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.5381, allocations: 2.938 kB / 0.7209 GB, free: 33.94 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.5381, allocations: 7.938 kB / 0.7209 GB, free: 33.93 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.5381, allocations: 7.312 kB / 0.7209 GB, free: 33.93 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001181/0.5393, allocations: 0.9414 MB / 0.7218 GB, free: 33.58 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.089e-06/0.5393, allocations: 11.44 kB / 0.7218 GB, free: 33.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.5395, allocations: 45.44 kB / 0.7219 GB, free: 33.57 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001425/0.5397, allocations: 44.39 kB / 0.7219 GB, free: 33.56 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.084e-05/0.5397, allocations: 6.719 kB / 0.7219 GB, free: 33.56 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002193/0.5399, allocations: 0.5627 MB / 0.7225 GB, free: 33.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5399, allocations: 6.312 kB / 0.7225 GB, free: 33.04 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006564/0.5406, allocations: 489.5 kB / 0.7229 GB, free: 32.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.5407, allocations: 161.6 kB / 0.7231 GB, free: 32.71 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.5408, allocations: 6.219 kB / 0.7231 GB, free: 32.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000344/0.5412, allocations: 39.86 kB / 0.7231 GB, free: 32.71 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.072e-05/0.5412, allocations: 25.03 kB / 0.7231 GB, free: 32.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.5412, allocations: 7.562 kB / 0.7232 GB, free: 32.71 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002574/0.5415, allocations: 326.3 kB / 0.7235 GB, free: 32.62 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5415, allocations: 2.938 kB / 0.7235 GB, free: 32.62 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0006692/0.5422, allocations: 245.7 kB / 0.7237 GB, free: 32.59 MB / 0.545 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.0004697/0.5427, allocations: 256 kB / 0.7239 GB, free: 32.47 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00103/0.5437, allocations: 490 kB / 0.7244 GB, free: 32.46 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.5437, allocations: 0 / 0.7244 GB, free: 32.46 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003387/0.5441, allocations: 175.8 kB / 0.7246 GB, free: 32.45 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009718/0.545, allocations: 219.7 kB / 0.7248 GB, free: 32.44 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.5462, allocations: 1.038 MB / 0.7258 GB, free: 31.83 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002168/0.5465, allocations: 0.8523 MB / 0.7266 GB, free: 31.12 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.5466, allocations: 44.81 kB / 0.7267 GB, free: 31.12 MB / 0.545 GB Notification: Performance of SimCode: time 2.2e-07/0.5466, allocations: 0 / 0.7267 GB, free: 31.12 MB / 0.545 GB Notification: Performance of Templates: time 0.01046/0.557, allocations: 10.14 MB / 0.7366 GB, free: 30.14 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)