Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Fluid.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.Fluid.Examples.SimpleExamples.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicReliefValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve,fileNamePrefix="ThermoSysPro_ThermoSysPro_Fluid_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.8256/0.8256, allocations: 150.8 MB / 166.1 MB, free: 15.62 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.536e-05/1.534e-05, allocations: 4 kB / 204.9 MB, free: 10.09 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1395, allocations: 31.98 MB / 236.8 MB, free: 5.375 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.SimpleExamples.TestDynamicReliefValve): time 1.522/1.661, allocations: 296.7 MB / 0.5211 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4649/2.126, allocations: 193.4 MB / 0.7099 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005375/2.127, allocations: 13.91 kB / 0.7099 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004291/2.127, allocations: 303.3 kB / 0.7102 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0009761/2.128, allocations: 0.5415 MB / 0.7107 GB, free: 3.664 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.02616/2.155, allocations: 10.6 MB / 0.7211 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001578/2.156, allocations: 1.311 MB / 0.7223 GB, free: 3.477 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006932/2.157, allocations: 0.5933 MB / 0.7229 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005653/2.157, allocations: 485.2 kB / 0.7234 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006088/2.158, allocations: 0.6902 MB / 0.7241 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.297e-05/2.158, allocations: 51.53 kB / 0.7241 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0357/2.194, allocations: 22.75 MB / 0.7463 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004224/2.194, allocations: 325.6 kB / 0.7466 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006804/2.195, allocations: 0.6118 MB / 0.7472 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.02629/2.221, allocations: 12.52 MB / 0.7595 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/2.221, allocations: 6.531 kB / 0.7595 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.374e-06/2.221, allocations: 0 / 0.7595 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.518e-05/2.221, allocations: 1.875 kB / 0.7595 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.006521/2.228, allocations: 2.866 MB / 0.7623 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/2.228, allocations: 8.875 kB / 0.7623 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/2.228, allocations: 146.9 kB / 0.7624 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001928/2.228, allocations: 159.2 kB / 0.7626 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009057/2.229, allocations: 0.7921 MB / 0.7633 GB, free: 9.98 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.969e-05/2.229, allocations: 105.5 kB / 0.7634 GB, free: 9.945 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/2.229, allocations: 94.78 kB / 0.7635 GB, free: 9.941 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/2.231, allocations: 1.092 MB / 0.7646 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.407e-05/2.231, allocations: 5 kB / 0.7646 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.66e-05/2.231, allocations: 38.91 kB / 0.7646 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/2.231, allocations: 22.56 kB / 0.7647 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/2.233, allocations: 1.062 MB / 0.7657 GB, free: 9.473 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.004224/2.237, allocations: 4.742 MB / 0.7703 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001796/2.239, allocations: 0.7633 MB / 0.7711 GB, free: 5.898 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005612/2.24, allocations: 333 kB / 0.7714 GB, free: 5.832 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.7731/3.013, allocations: 228 MB / 0.9941 GB, free: 236.5 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008202/3.013, allocations: 427.9 kB / 0.9945 GB, free: 236.5 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=69): time 2.174e-06/3.013, allocations: 0 / 0.9945 GB, free: 236.5 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69): time 0.004978/3.018, allocations: 1.586 MB / 0.996 GB, free: 236.3 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.777e-05/3.018, allocations: 188.9 kB / 0.9962 GB, free: 236.1 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/3.02, allocations: 1.36 MB / 0.9975 GB, free: 235.9 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 4.608e-05/3.02, allocations: 37.89 kB / 0.9976 GB, free: 235.9 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003089/3.02, allocations: 0.5815 MB / 0.9981 GB, free: 235.7 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/3.02, allocations: 231 kB / 0.9984 GB, free: 235.5 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/3.021, allocations: 81.31 kB / 0.9984 GB, free: 235.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 5.789e-05/3.021, allocations: 348.3 kB / 0.9988 GB, free: 235.2 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005784/3.021, allocations: 342.6 kB / 0.9991 GB, free: 235.2 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006385/3.022, allocations: 0.5105 MB / 0.9996 GB, free: 235 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/3.023, allocations: 0.7787 MB / 1 GB, free: 234.9 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/3.023, allocations: 0 / 1 GB, free: 234.9 MB / 0.8106 GB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001772/3.025, allocations: 1.123 MB / 1.001 GB, free: 234.7 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/3.025, allocations: 9.188 kB / 1.001 GB, free: 234.7 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/3.025, allocations: 3.188 kB / 1.001 GB, free: 234.7 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003875/3.029, allocations: 0.7009 MB / 1.002 GB, free: 234.7 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006198/3.029, allocations: 159.9 kB / 1.002 GB, free: 234.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000831/3.03, allocations: 0.8629 MB / 1.003 GB, free: 234.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006392/3.031, allocations: 115.1 kB / 1.003 GB, free: 234.1 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.846e-05/3.031, allocations: 34.11 kB / 1.003 GB, free: 234.1 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 16 (sourceP.C.ftype,reliefValve.fluid,pipe.fluid,sinkP.fluid,bend.fluid,diaphragm.fluid,reliefValve.clapper_is_free,$whenCondition1,$whenCondition2,sourceP.fluid1,reliefValve.C2.diff_on_2,bend.C2.diff_on_2,pipe.C1.diff_on_2,bend.C2.diff_on_1,diaphragm.C2.diff_on_1,reliefValve.C2.diff_on_1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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,19)} Notification: Performance of prepare postOptimizeDAE: time 0.000422/3.031, allocations: 362.1 kB / 1.004 GB, free: 234 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/3.031, allocations: 114.3 kB / 1.004 GB, free: 233.9 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00205/3.033, allocations: 1.013 MB / 1.005 GB, free: 233.8 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/3.033, allocations: 8.281 kB / 1.005 GB, free: 233.8 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/3.033, allocations: 0 / 1.005 GB, free: 233.8 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.016e-06/3.034, allocations: 5.625 kB / 1.005 GB, free: 233.8 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002661/3.036, allocations: 2.082 MB / 1.007 GB, free: 233.3 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/3.036, allocations: 0 / 1.007 GB, free: 233.3 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005141/3.037, allocations: 114 kB / 1.007 GB, free: 233.3 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003059/3.04, allocations: 0.5925 MB / 1.007 GB, free: 233.2 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.02e-05/3.04, allocations: 22.97 kB / 1.007 GB, free: 233.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008275/3.041, allocations: 0.882 MB / 1.008 GB, free: 232.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/3.041, allocations: 5.922 kB / 1.008 GB, free: 232.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002586/3.043, allocations: 1.398 MB / 1.01 GB, free: 232.4 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/3.044, allocations: 291.7 kB / 1.01 GB, free: 232.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001256/3.044, allocations: 14.42 kB / 1.01 GB, free: 232.2 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005464/3.044, allocations: 60.36 kB / 1.01 GB, free: 232.2 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001326/3.044, allocations: 65.09 kB / 1.01 GB, free: 232.2 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.725e-05/3.045, allocations: 24.38 kB / 1.01 GB, free: 232.2 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001027/3.046, allocations: 0.9884 MB / 1.011 GB, free: 232.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/3.046, allocations: 0 / 1.011 GB, free: 232.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004749/3.05, allocations: 2.027 MB / 1.013 GB, free: 232 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (reliefValve.z,reliefValve.v,reliefValve.Wdyn) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,reliefValve.clapper_is_free,diaphragm.C2.diff_on_1,reliefValve.C2.diff_on_1,pipe.C1.diff_on_2,bend.C2.diff_on_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01054/3.061, allocations: 4.776 MB / 1.018 GB, free: 230.9 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001678/3.063, allocations: 0.808 MB / 1.019 GB, free: 230.9 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/3.063, allocations: 0.9688 kB / 1.019 GB, free: 230.9 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008187/3.063, allocations: 424.1 kB / 1.019 GB, free: 230.9 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001138/3.065, allocations: 179.7 kB / 1.019 GB, free: 230.8 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/3.079, allocations: 11.17 MB / 1.03 GB, free: 226.8 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005718/3.08, allocations: 1.151 MB / 1.031 GB, free: 226 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0005757/3.081, allocations: 144 kB / 1.031 GB, free: 226 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005153/3.081, allocations: 473.7 kB / 1.032 GB, free: 226 MB / 0.8106 GB Notification: Performance of SimCode: time 9.41e-07/3.081, allocations: 0 / 1.032 GB, free: 226 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09076/3.172, allocations: 73.96 MB / 1.104 GB, free: 156.1 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000151/3.172, allocations: 292 kB / 1.104 GB, free: 155.7 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.899/8.071, allocations: 0 / 1.104 GB, free: 155.7 MB / 0.8106 GB (rm -f ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe >> ../files/ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicReliefValve_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Fluid_Examples_SimpleExamples_TestDynamicReliefValve.fmu > ThermoSysPro_ThermoSysPro.Fluid.Examples.SimpleExamples.TestDynamicReliefValve.pipe 2>&1)