Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicReliefValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_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.7708/0.7708, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.157e-05/1.158e-05, allocations: 0 / 204.9 MB, free: 9.973 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1425/0.1426, allocations: 31.98 MB / 236.8 MB, free: 5.398 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.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve): time 1.595/1.738, allocations: 296.6 MB / 0.521 GB, free: 11.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1918/1.929, allocations: 186.1 MB / 0.7027 GB, free: 0.7422 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004159/1.93, allocations: 4 kB / 0.7027 GB, free: 0.7383 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005032/1.93, allocations: 215 kB / 0.7029 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00086/1.931, allocations: 377.7 kB / 0.7033 GB, free: 160 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3287/2.26, allocations: 9 MB / 0.7121 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001443/2.261, allocations: 1.138 MB / 0.7132 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004459/2.262, allocations: 385.1 kB / 0.7136 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004597/2.262, allocations: 402 kB / 0.714 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004338/2.263, allocations: 443.8 kB / 0.7144 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.328e-05/2.263, allocations: 32.97 kB / 0.7144 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03257/2.295, allocations: 20.37 MB / 0.7343 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002793/2.296, allocations: 155.2 kB / 0.7345 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005812/2.296, allocations: 443.7 kB / 0.7349 GB, free: 3.805 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02249/2.319, allocations: 10.46 MB / 0.7451 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/2.319, allocations: 0 / 0.7451 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of FrontEnd: time 4.058e-06/2.319, allocations: 0 / 0.7451 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.671e-05/2.319, allocations: 0 / 0.7451 GB, free: 15.71 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.008226/2.327, allocations: 2.254 MB / 0.7473 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/2.327, allocations: 9.469 kB / 0.7473 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002046/2.327, allocations: 131.5 kB / 0.7474 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/2.328, allocations: 108.6 kB / 0.7475 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005686/2.328, allocations: 446.2 kB / 0.748 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.411e-05/2.328, allocations: 78.23 kB / 0.748 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.228e-05/2.328, allocations: 66.69 kB / 0.7481 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/2.33, allocations: 0.9518 MB / 0.749 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/2.33, allocations: 7.781 kB / 0.749 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.88e-05/2.33, allocations: 27.41 kB / 0.7491 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.184e-05/2.33, allocations: 36.12 kB / 0.7491 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/2.331, allocations: 0.7168 MB / 0.7498 GB, free: 13.34 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.03959/2.371, allocations: 21.65 MB / 0.7709 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/2.372, allocations: 0.741 MB / 0.7717 GB, free: 13.05 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006066/2.373, allocations: 411.9 kB / 0.772 GB, free: 13 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3273/2.7, allocations: 160 MB / 0.9283 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009658/2.701, allocations: 0.4992 MB / 0.9288 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=111): time 2.805e-06/2.701, allocations: 0 / 0.9288 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=111): time 0.00669/2.708, allocations: 2.142 MB / 0.9309 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/2.708, allocations: 140.5 kB / 0.931 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006774/2.709, allocations: 0.5475 MB / 0.9316 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/2.709, allocations: 33.08 kB / 0.9316 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/2.709, allocations: 360.9 kB / 0.932 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002495/2.709, allocations: 360.6 kB / 0.9323 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001064/2.709, allocations: 93.69 kB / 0.9324 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000156/2.709, allocations: 392 kB / 0.9328 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006105/2.71, allocations: 339.8 kB / 0.9331 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007173/2.711, allocations: 0.5135 MB / 0.9336 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/2.712, allocations: 0.9019 MB / 0.9345 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/2.712, allocations: 0 / 0.9345 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00207/2.714, allocations: 1.198 MB / 0.9356 GB, free: 9.992 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/2.714, allocations: 11.94 kB / 0.9356 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/2.714, allocations: 4 kB / 0.9356 GB, free: 9.977 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/2.718, allocations: 1.033 MB / 0.9367 GB, free: 9.023 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000441/2.718, allocations: 97.58 kB / 0.9368 GB, free: 8.938 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001846/2.72, allocations: 1.173 MB / 0.9379 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006233/2.721, allocations: 126.1 kB / 0.938 GB, free: 7.832 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.069e-05/2.721, allocations: 35.3 kB / 0.9381 GB, free: 7.805 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 17 (sourceP.C.b,Sink1.C.a,VolumeD1.Cs3.b,VolumeD1.Cs2.b,VolumeD1.Cs1.b,VolumeD1.Ce.a,Pipe1.C2.b,Pipe1.C1.a,Sink2.C.a,Pipe2.C2.b,Pipe2.C1.a,ReliefValve.C2.b,ReliefValve.C1.a,ReliefValve.clapper_is_free,$whenCondition1,$whenCondition2,VolumeD1.Cs2.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 53 * 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 {(7,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0003237/2.721, allocations: 232 kB / 0.9383 GB, free: 7.629 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001107/2.721, allocations: 76.72 kB / 0.9383 GB, free: 7.555 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/2.724, allocations: 1.712 MB / 0.94 GB, free: 6.316 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00204/2.726, allocations: 1.176 MB / 0.9412 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/2.726, allocations: 0 / 0.9412 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/2.726, allocations: 3.984 kB / 0.9412 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004061/2.73, allocations: 2.664 MB / 0.9438 GB, free: 3.496 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/2.73, allocations: 4 kB / 0.9438 GB, free: 3.492 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005944/2.731, allocations: 136.8 kB / 0.9439 GB, free: 3.375 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002503/2.733, allocations: 0.8447 MB / 0.9447 GB, free: 2.582 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.263e-05/2.733, allocations: 19.98 kB / 0.9447 GB, free: 2.562 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001658/2.735, allocations: 1.147 MB / 0.9459 GB, free: 1.395 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/2.735, allocations: 2.906 kB / 0.9459 GB, free: 1.395 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002931/2.738, allocations: 1.858 MB / 0.9477 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003661/2.738, allocations: 263.4 kB / 0.9479 GB, free: 15.24 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/2.738, allocations: 12 kB / 0.9479 GB, free: 15.23 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00051/2.739, allocations: 64.62 kB / 0.948 GB, free: 15.17 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/2.739, allocations: 68.84 kB / 0.9481 GB, free: 15.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.483e-05/2.739, allocations: 27.98 kB / 0.9481 GB, free: 15.07 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0005182/2.74, allocations: 463 kB / 0.9485 GB, free: 14.62 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/2.74, allocations: 4 kB / 0.9485 GB, free: 14.62 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.004366/2.744, allocations: 1.671 MB / 0.9502 GB, free: 12.95 MB / 0.795 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,15)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01118/2.755, allocations: 4.694 MB / 0.9548 GB, free: 8.52 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002625/2.758, allocations: 1.246 MB / 0.956 GB, free: 7.262 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/2.758, allocations: 0.8125 kB / 0.956 GB, free: 7.262 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001497/2.759, allocations: 0.6526 MB / 0.9566 GB, free: 6.625 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001875/2.761, allocations: 329.6 kB / 0.9569 GB, free: 6.305 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01394/2.775, allocations: 8.853 MB / 0.9656 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000676/2.776, allocations: 1.051 MB / 0.9666 GB, free: 12.18 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004143/2.776, allocations: 85.12 kB / 0.9667 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004399/2.777, allocations: 398.4 kB / 0.9671 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of SimCode: time 7.01e-07/2.777, allocations: 2.906 kB / 0.9671 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2642/3.041, allocations: 69.24 MB / 1.035 GB, free: 427.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002069/3.041, allocations: 303.5 kB / 1.035 GB, free: 427.3 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.752/7.793, allocations: 2.188 kB / 1.035 GB, free: 427.3 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicReliefValve_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDynamicReliefValve.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDynamicReliefValve.pipe 2>&1)