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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.CheckValve,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.967/0.967, allocations: 141.8 MB / 149.3 MB, free: 9.219 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 179.9 kB / 182.2 MB, free: 9.461 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 221.5 MB / 436.4 MB, free: 13.34 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000975/0.0009751, allocations: 95.31 kB / 0.5074 GB, free: 10.17 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001994/0.001994, allocations: 283.8 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.334e-05/2.337e-05, allocations: 4 kB / 0.6766 GB, free: 12.74 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4519/0.452, allocations: 82.77 MB / 0.7575 GB, free: 31.94 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7524/1.204, allocations: 349.3 MB / 1.099 GB, free: 2.598 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002398/1.205, allocations: 84.33 kB / 1.099 GB, free: 2.555 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.8271/2.032, allocations: 254.8 MB / 1.347 GB, free: 74.73 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.373e-06/2.032, allocations: 0 / 1.347 GB, free: 74.73 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.027e-05/2.032, allocations: 16 kB / 1.348 GB, free: 74.71 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001267/2.033, allocations: 0.8372 MB / 1.348 GB, free: 73.82 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/2.033, allocations: 8.031 kB / 1.348 GB, free: 73.82 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/2.033, allocations: 63.25 kB / 1.348 GB, free: 73.75 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006622/2.034, allocations: 463.6 kB / 1.349 GB, free: 73.26 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/2.034, allocations: 16 kB / 1.349 GB, free: 73.24 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.858e-05/2.034, allocations: 20 kB / 1.349 GB, free: 73.22 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003389/2.034, allocations: 193.5 kB / 1.349 GB, free: 73.04 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003632/2.035, allocations: 230.2 kB / 1.349 GB, free: 72.8 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/2.035, allocations: 0 / 1.349 GB, free: 72.8 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.576e-05/2.035, allocations: 0 / 1.349 GB, free: 72.8 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/2.035, allocations: 11.94 kB / 1.349 GB, free: 72.79 MB / 0.6823 GB Warning: The model contains alias variables with conflicting start and/or 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.001702/2.037, allocations: 1.262 MB / 1.351 GB, free: 71.42 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004084/2.037, allocations: 239.5 kB / 1.351 GB, free: 71.18 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/2.037, allocations: 96.84 kB / 1.351 GB, free: 71.08 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002922/2.037, allocations: 0.4947 MB / 1.351 GB, free: 70.48 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.948e-05/2.037, allocations: 34.56 kB / 1.351 GB, free: 70.43 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=25): time 1.673e-06/2.038, allocations: 0 / 1.351 GB, free: 70.43 MB / 0.6823 GB Notification: Performance of matching and sorting (n=25): time 0.0005927/2.038, allocations: 275.1 kB / 1.352 GB, free: 70.16 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.75e-05/2.038, allocations: 51.41 kB / 1.352 GB, free: 70.09 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/2.038, allocations: 349.3 kB / 1.352 GB, free: 69.75 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/2.038, allocations: 29.7 kB / 1.352 GB, free: 69.71 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/2.039, allocations: 244.8 kB / 1.352 GB, free: 69.47 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.635e-05/2.039, allocations: 86.64 kB / 1.352 GB, free: 69.38 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.649e-05/2.039, allocations: 0 / 1.352 GB, free: 69.38 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.179e-05/2.039, allocations: 363.9 kB / 1.353 GB, free: 69.02 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/2.039, allocations: 75.98 kB / 1.353 GB, free: 68.95 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/2.039, allocations: 178.6 kB / 1.353 GB, free: 68.73 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002553/2.039, allocations: 119.2 kB / 1.353 GB, free: 68.62 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/2.039, allocations: 3.984 kB / 1.353 GB, free: 68.61 MB / 0.6823 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000663/2.04, allocations: 332.6 kB / 1.353 GB, free: 68.28 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 6.763e-05/2.04, allocations: 281.1 kB / 1.354 GB, free: 67.99 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/2.04, allocations: 0 / 1.354 GB, free: 67.99 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002083/2.04, allocations: 40.83 kB / 1.354 GB, free: 67.95 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003225/2.041, allocations: 75.89 kB / 1.354 GB, free: 67.87 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000352/2.041, allocations: 0.5718 MB / 1.354 GB, free: 67.27 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004786/2.042, allocations: 59.78 kB / 1.354 GB, free: 67.21 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.844e-05/2.042, allocations: 16 kB / 1.354 GB, free: 67.2 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.907e-06/2.042, allocations: 4 kB / 1.354 GB, free: 67.2 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004328/2.042, allocations: 219.8 kB / 1.355 GB, free: 66.98 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.485e-06/2.042, allocations: 3.938 kB / 1.355 GB, free: 66.98 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.607e-06/2.042, allocations: 0 / 1.355 GB, free: 66.98 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003606/2.042, allocations: 91.83 kB / 1.355 GB, free: 66.89 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/2.042, allocations: 8 kB / 1.355 GB, free: 66.88 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004023/2.043, allocations: 51.92 kB / 1.355 GB, free: 66.83 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.047e-05/2.043, allocations: 23.98 kB / 1.355 GB, free: 66.8 MB / 0.6823 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: checkValve_m_flow.a:VARIABLE(protected = true ) "Scaled pressure variable" type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.000128/2.043, allocations: 116.8 kB / 1.355 GB, free: 66.68 MB / 0.6823 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004287/2.043, allocations: 257.8 kB / 1.355 GB, free: 66.42 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.86e-05/2.044, allocations: 47.39 kB / 1.355 GB, free: 66.38 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006099/2.044, allocations: 335.5 kB / 1.355 GB, free: 66.04 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/2.044, allocations: 0 / 1.355 GB, free: 66.04 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/2.044, allocations: 4 kB / 1.355 GB, free: 66.03 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/2.044, allocations: 3.984 kB / 1.355 GB, free: 66.03 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/2.045, allocations: 0.8095 MB / 1.356 GB, free: 65.16 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/2.045, allocations: 0 / 1.356 GB, free: 65.16 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/2.045, allocations: 55.95 kB / 1.356 GB, free: 65.11 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001271/2.046, allocations: 32.97 kB / 1.356 GB, free: 65.07 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/2.046, allocations: 11.98 kB / 1.356 GB, free: 65.06 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002169/2.046, allocations: 0.5562 MB / 1.357 GB, free: 64.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/2.046, allocations: 0 / 1.357 GB, free: 64.48 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004715/2.046, allocations: 481.8 kB / 1.357 GB, free: 63.95 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/2.046, allocations: 152.4 kB / 1.358 GB, free: 63.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.477e-05/2.047, allocations: 4 kB / 1.358 GB, free: 63.78 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000362/2.047, allocations: 47.94 kB / 1.358 GB, free: 63.73 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.383e-05/2.047, allocations: 15.97 kB / 1.358 GB, free: 63.71 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/2.047, allocations: 16 kB / 1.358 GB, free: 63.7 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0002156/2.047, allocations: 271 kB / 1.358 GB, free: 63.44 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/2.047, allocations: 0 / 1.358 GB, free: 63.44 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0007633/2.048, allocations: 267.5 kB / 1.358 GB, free: 63.18 MB / 0.6823 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001163/2.049, allocations: 1.546 MB / 1.36 GB, free: 61.59 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0006594/2.05, allocations: 370.4 kB / 1.36 GB, free: 61.23 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/2.05, allocations: 3.938 kB / 1.36 GB, free: 61.22 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002126/2.05, allocations: 131.8 kB / 1.36 GB, free: 61.09 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/2.051, allocations: 225.6 kB / 1.36 GB, free: 60.88 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/2.052, allocations: 0.6897 MB / 1.361 GB, free: 60.14 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/2.053, allocations: 0.8635 MB / 1.362 GB, free: 59.24 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000471/2.053, allocations: 140.5 kB / 1.362 GB, free: 59.11 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/2.053, allocations: 171.4 kB / 1.362 GB, free: 58.94 MB / 0.6823 GB Notification: Performance of SimCode: time 3.81e-07/2.053, allocations: 0 / 1.362 GB, free: 58.94 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/2.086, allocations: 14.39 MB / 1.376 GB, free: 44.72 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/2.087, allocations: 180.1 kB / 1.376 GB, free: 44.53 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/4.459, allocations: 2.109 kB / 1.376 GB, free: 44.53 MB / 0.6823 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_CheckValve.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1)