Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDynamicReliefValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDynamicReliefValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.9344/0.9344, allocations: 150.8 MB / 166.1 MB, free: 15.42 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.607e-05/1.609e-05, allocations: 0 / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1931, allocations: 31.98 MB / 236.9 MB, free: 5.184 MB / 190.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve): time 1.558/1.751, allocations: 297.3 MB / 0.5217 GB, free: 10.43 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4516/2.203, allocations: 195.1 MB / 0.7122 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005153/2.203, allocations: 18.41 kB / 0.7122 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002999/2.203, allocations: 164.9 kB / 0.7124 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0009586/2.204, allocations: 473.5 kB / 0.7129 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02632/2.231, allocations: 11.13 MB / 0.7237 GB, free: 3.711 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001438/2.232, allocations: 1.52 MB / 0.7252 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005732/2.233, allocations: 0.6336 MB / 0.7258 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000454/2.233, allocations: 0.5044 MB / 0.7263 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005158/2.234, allocations: 0.6339 MB / 0.7269 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.36e-05/2.234, allocations: 60.69 kB / 0.727 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03352/2.267, allocations: 22.96 MB / 0.7494 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003772/2.268, allocations: 255.4 kB / 0.7497 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007273/2.269, allocations: 0.6313 MB / 0.7503 GB, free: 1.059 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02598/2.294, allocations: 12.53 MB / 0.7625 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/2.295, allocations: 0 / 0.7625 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.963e-06/2.295, allocations: 8.453 kB / 0.7625 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.373e-05/2.295, allocations: 0 / 0.7625 GB, free: 12.45 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.006335/2.301, allocations: 2.805 MB / 0.7653 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/2.301, allocations: 9.844 kB / 0.7653 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001894/2.301, allocations: 185.5 kB / 0.7655 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/2.301, allocations: 160.3 kB / 0.7656 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008016/2.302, allocations: 0.6477 MB / 0.7662 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001197/2.302, allocations: 128.5 kB / 0.7664 GB, free: 10.03 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/2.303, allocations: 129.9 kB / 0.7665 GB, free: 10.02 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/2.304, allocations: 1.371 MB / 0.7678 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.044e-05/2.304, allocations: 9.375 kB / 0.7678 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.146e-05/2.305, allocations: 49.78 kB / 0.7679 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/2.305, allocations: 32 kB / 0.7679 GB, free: 9.508 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001729/2.306, allocations: 1.175 MB / 0.7691 GB, free: 9.352 MB / 0.5919 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.01862/2.325, allocations: 15.81 MB / 0.7845 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/2.326, allocations: 0.8748 MB / 0.7854 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004636/2.327, allocations: 291.8 kB / 0.7856 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7667/3.094, allocations: 290.8 MB / 1.07 GB, free: 389 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000675/3.094, allocations: 394.3 kB / 1.07 GB, free: 388.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=59): time 2.715e-06/3.094, allocations: 0 / 1.07 GB, free: 388.7 MB / 0.8106 GB Notification: Performance of matching and sorting (n=59): time 0.003708/3.098, allocations: 1.332 MB / 1.071 GB, free: 387.6 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.078e-05/3.098, allocations: 89.42 kB / 1.071 GB, free: 387.5 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009177/3.099, allocations: 0.8544 MB / 1.072 GB, free: 386.9 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.232e-05/3.099, allocations: 36.58 kB / 1.072 GB, free: 386.8 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/3.099, allocations: 0.6108 MB / 1.073 GB, free: 386.4 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/3.099, allocations: 205 kB / 1.073 GB, free: 386.2 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/3.1, allocations: 106.9 kB / 1.073 GB, free: 386.2 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.647e-05/3.1, allocations: 392.9 kB / 1.073 GB, free: 385.8 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005013/3.1, allocations: 299.9 kB / 1.074 GB, free: 385.6 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000565/3.101, allocations: 0.676 MB / 1.074 GB, free: 384.9 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/3.102, allocations: 1.004 MB / 1.075 GB, free: 384 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/3.102, allocations: 4 kB / 1.075 GB, free: 384 MB / 0.8106 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001754/3.104, allocations: 1.173 MB / 1.077 GB, free: 383.1 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/3.104, allocations: 8 kB / 1.077 GB, free: 383 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.538e-05/3.104, allocations: 18.25 kB / 1.077 GB, free: 383 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002634/3.106, allocations: 0.5599 MB / 1.077 GB, free: 382.5 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006475/3.107, allocations: 203.2 kB / 1.077 GB, free: 382.3 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008297/3.108, allocations: 0.8556 MB / 1.078 GB, free: 381.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006974/3.108, allocations: 150.1 kB / 1.078 GB, free: 381.4 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-05/3.109, allocations: 51.48 kB / 1.078 GB, free: 381.4 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 22 (sourceP.fluid1,sourceP.C.ftype,VolumeD1.Cs1.ftype,VolumeD1.Cs3.ftype,VolumeD1.Cs2.ftype,VolumeD1.fluids[1],ReliefValve.fluid,Pipe2.fluid,Sink2.fluid,Pipe1.fluid,Sink1.fluid,ReliefValve.clapper_is_free,$whenCondition1,$whenCondition2,VolumeD1.fluid1,ReliefValve.C1.diff_on_2,VolumeD1.Cs3.diff_on_1,VolumeD1.Cs2.diff_on_1,VolumeD1.Cs1.diff_on_1,ReliefValve.C2.diff_on_1,VolumeD1.Ce.diff_on_2,VolumeD1.Cs2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 109 * 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 {(4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0003433/3.109, allocations: 298.5 kB / 1.079 GB, free: 381.2 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/3.109, allocations: 94.78 kB / 1.079 GB, free: 381.1 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/3.111, allocations: 0.8674 MB / 1.08 GB, free: 380.4 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-06/3.111, allocations: 8 kB / 1.08 GB, free: 380.4 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/3.111, allocations: 3.938 kB / 1.08 GB, free: 380.4 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/3.111, allocations: 5.109 kB / 1.08 GB, free: 380.4 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002403/3.113, allocations: 1.911 MB / 1.081 GB, free: 378.9 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/3.113, allocations: 2.078 kB / 1.081 GB, free: 378.9 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/3.113, allocations: 108.6 kB / 1.082 GB, free: 378.8 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00184/3.115, allocations: 408.5 kB / 1.082 GB, free: 378.5 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4e-05/3.115, allocations: 15.81 kB / 1.082 GB, free: 378.4 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006831/3.116, allocations: 0.7958 MB / 1.083 GB, free: 377.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/3.116, allocations: 3.672 kB / 1.083 GB, free: 377.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001813/3.118, allocations: 1.241 MB / 1.084 GB, free: 376.8 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000246/3.118, allocations: 242.4 kB / 1.084 GB, free: 376.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/3.118, allocations: 19.19 kB / 1.084 GB, free: 376.6 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004061/3.119, allocations: 35.72 kB / 1.084 GB, free: 376.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/3.119, allocations: 52.23 kB / 1.084 GB, free: 376.5 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/3.119, allocations: 23.92 kB / 1.084 GB, free: 376.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0004942/3.119, allocations: 0.5395 MB / 1.085 GB, free: 376 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.9e-07/3.119, allocations: 4 kB / 1.085 GB, free: 376 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004241/3.124, allocations: 2.057 MB / 1.087 GB, free: 374.3 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (ReliefValve.z,ReliefValve.v,ReliefValve.Wdyn,VolumeD1.h) * Number of discrete variables: 3 ($whenCondition2,$whenCondition1,ReliefValve.clapper_is_free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009337/3.133, allocations: 4.599 MB / 1.091 GB, free: 370.6 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001384/3.134, allocations: 0.8098 MB / 1.092 GB, free: 370 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/3.134, allocations: 0 / 1.092 GB, free: 370 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0006118/3.135, allocations: 370.2 kB / 1.092 GB, free: 369.7 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008512/3.136, allocations: 178.5 kB / 1.093 GB, free: 369.6 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/3.147, allocations: 9.503 MB / 1.102 GB, free: 360.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/3.147, allocations: 1.076 MB / 1.103 GB, free: 359.7 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005092/3.148, allocations: 148.5 kB / 1.103 GB, free: 359.6 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004354/3.148, allocations: 418.9 kB / 1.104 GB, free: 359.5 MB / 0.8106 GB Notification: Performance of SimCode: time 5.71e-07/3.148, allocations: 0 / 1.104 GB, free: 359.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08516/3.233, allocations: 70.89 MB / 1.173 GB, free: 289.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/3.233, allocations: 309.5 kB / 1.173 GB, free: 289.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.895/8.128, allocations: 4.062 kB / 1.173 GB, free: 289.3 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDynamicReliefValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_Book_SimpleExamples_PressureLoss_TestDynamicReliefValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe 2>&1)