Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.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.SimpleExamples.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicReliefValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_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.8186/0.8186, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.788e-05/1.792e-05, allocations: 4 kB / 204.9 MB, free: 9.961 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1601, allocations: 31.98 MB / 236.8 MB, free: 5.172 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.SimpleExamples.TestDynamicReliefValve): time 1.591/1.751, allocations: 296.5 MB / 0.5209 GB, free: 11.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1834/1.934, allocations: 186.1 MB / 0.7026 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004868/1.935, allocations: 4 kB / 0.7026 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007139/1.935, allocations: 354.8 kB / 0.7029 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.2714/2.207, allocations: 0.498 MB / 0.7034 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.023/2.23, allocations: 9.009 MB / 0.7122 GB, free: 4.211 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001346/2.231, allocations: 1.149 MB / 0.7134 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006151/2.232, allocations: 428.4 kB / 0.7138 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006866/2.232, allocations: 441.2 kB / 0.7142 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007213/2.233, allocations: 0.5745 MB / 0.7147 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.431e-05/2.233, allocations: 33.56 kB / 0.7148 GB, free: 4.16 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03089/2.264, allocations: 20.36 MB / 0.7347 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003328/2.265, allocations: 271 kB / 0.7349 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005766/2.265, allocations: 0.5247 MB / 0.7354 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02015/2.285, allocations: 10.69 MB / 0.7459 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/2.285, allocations: 1.688 kB / 0.7459 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.694e-06/2.285, allocations: 0 / 0.7459 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.332e-05/2.285, allocations: 2.469 kB / 0.7459 GB, free: 15.43 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: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 0.005795/2.291, allocations: 2.452 MB / 0.7483 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/2.291, allocations: 11.56 kB / 0.7483 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001393/2.291, allocations: 118.5 kB / 0.7484 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001521/2.292, allocations: 138.6 kB / 0.7485 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006806/2.292, allocations: 0.6721 MB / 0.7492 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.491e-05/2.292, allocations: 73.27 kB / 0.7493 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.696e-05/2.292, allocations: 63.06 kB / 0.7493 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/2.294, allocations: 0.9299 MB / 0.7502 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/2.294, allocations: 2.906 kB / 0.7502 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.385e-05/2.294, allocations: 26.44 kB / 0.7503 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.316e-05/2.294, allocations: 31.02 kB / 0.7503 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/2.295, allocations: 0.7885 MB / 0.7511 GB, free: 12.82 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.02102/2.316, allocations: 12.76 MB / 0.7635 GB, free: 3.551 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/2.317, allocations: 0.6862 MB / 0.7642 GB, free: 3.426 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005431/2.318, allocations: 385.8 kB / 0.7645 GB, free: 3.379 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3155/2.634, allocations: 160.2 MB / 0.921 GB, free: 8.512 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009325/2.634, allocations: 479.2 kB / 0.9214 GB, free: 8.168 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=109): time 2.705e-06/2.634, allocations: 0 / 0.9214 GB, free: 8.168 MB / 0.7637 GB Notification: Performance of matching and sorting (n=109): time 0.007874/2.642, allocations: 2.21 MB / 0.9236 GB, free: 6.336 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/2.642, allocations: 171.5 kB / 0.9238 GB, free: 6.137 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001652/2.644, allocations: 1.283 MB / 0.925 GB, free: 5.152 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.589e-05/2.644, allocations: 37.08 kB / 0.9251 GB, free: 5.117 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003037/2.644, allocations: 463.8 kB / 0.9255 GB, free: 4.848 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.00025/2.645, allocations: 352.3 kB / 0.9258 GB, free: 4.547 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/2.645, allocations: 90.84 kB / 0.9259 GB, free: 4.484 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000103/2.645, allocations: 344.7 kB / 0.9262 GB, free: 4.156 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006157/2.646, allocations: 371 kB / 0.9266 GB, free: 3.918 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007214/2.646, allocations: 0.526 MB / 0.9271 GB, free: 3.473 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/2.648, allocations: 0.8533 MB / 0.9279 GB, free: 2.863 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/2.648, allocations: 4 kB / 0.928 GB, free: 2.859 MB / 0.7637 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00217/2.65, allocations: 1.263 MB / 0.9292 GB, free: 1.977 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/2.65, allocations: 8 kB / 0.9292 GB, free: 1.969 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.337e-05/2.65, allocations: 4.281 kB / 0.9292 GB, free: 1.965 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004431/2.654, allocations: 1.149 MB / 0.9303 GB, free: 0.8906 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000518/2.655, allocations: 110.3 kB / 0.9304 GB, free: 0.793 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00148/2.656, allocations: 1.12 MB / 0.9315 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007489/2.657, allocations: 123.5 kB / 0.9316 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.969e-05/2.657, allocations: 39.36 kB / 0.9317 GB, free: 15.74 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 13 (diaphragm.C2.b,diaphragm.C1.a,bend.C2.b,bend.C1.a,sourceP.C.b,sinkP.C.a,pipe.C2.b,pipe.C1.a,reliefValve.C2.b,reliefValve.C1.a,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 53 * 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 {(7,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0004522/2.658, allocations: 323 kB / 0.932 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/2.658, allocations: 110.4 kB / 0.9321 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002797/2.661, allocations: 1.715 MB / 0.9338 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002152/2.663, allocations: 1.206 MB / 0.9349 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/2.663, allocations: 3.938 kB / 0.9349 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/2.663, allocations: 3.984 kB / 0.9349 GB, free: 13.42 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00428/2.667, allocations: 2.817 MB / 0.9377 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/2.667, allocations: 0 / 0.9377 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006123/2.668, allocations: 137.7 kB / 0.9378 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003556/2.671, allocations: 1.097 MB / 0.9389 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.507e-05/2.671, allocations: 16 kB / 0.9389 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/2.673, allocations: 1.219 MB / 0.9401 GB, free: 8.387 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/2.673, allocations: 5.969 kB / 0.9401 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003344/2.676, allocations: 1.919 MB / 0.942 GB, free: 6.445 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004195/2.677, allocations: 315 kB / 0.9423 GB, free: 6.117 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/2.677, allocations: 16 kB / 0.9423 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005781/2.677, allocations: 63.95 kB / 0.9424 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/2.677, allocations: 68.89 kB / 0.9424 GB, free: 5.973 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.762e-05/2.678, allocations: 31.98 kB / 0.9425 GB, free: 5.941 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.001093/2.679, allocations: 0.9515 MB / 0.9434 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/2.679, allocations: 0 / 0.9434 GB, free: 4.98 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.004066/2.683, allocations: 1.694 MB / 0.945 GB, free: 3.285 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (reliefValve.z,reliefValve.v,reliefValve.Wdyn) * 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): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01183/2.695, allocations: 4.76 MB / 0.9497 GB, free: 14.79 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00277/2.697, allocations: 1.206 MB / 0.9509 GB, free: 13.59 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/2.697, allocations: 288 / 0.9509 GB, free: 13.59 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.001309/2.699, allocations: 0.604 MB / 0.9515 GB, free: 12.99 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/2.701, allocations: 333.2 kB / 0.9518 GB, free: 12.66 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01727/2.718, allocations: 11.26 MB / 0.9628 GB, free: 1.098 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007339/2.719, allocations: 1.195 MB / 0.9639 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0004477/2.719, allocations: 121 kB / 0.9641 GB, free: 15.77 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005522/2.72, allocations: 495.3 kB / 0.9645 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of SimCode: time 4.91e-07/2.72, allocations: 0 / 0.9645 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2691/2.989, allocations: 73.68 MB / 1.036 GB, free: 424.5 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/2.989, allocations: 283 kB / 1.037 GB, free: 424.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.985/7.974, allocations: 2.5 kB / 1.037 GB, free: 424.1 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicReliefValve_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestDynamicReliefValve.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestDynamicReliefValve.pipe 2>&1)