Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.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.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm",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.8621/0.8621, allocations: 150.8 MB / 166.1 MB, free: 15.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 1.485e-05/1.487e-05, allocations: 4 kB / 204.9 MB, free: 9.977 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1763/0.1763, allocations: 31.99 MB / 236.8 MB, free: 5.551 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.TestDiaphragm): time 1.738/1.914, allocations: 294.5 MB / 0.5189 GB, free: 13.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.04389/1.958, allocations: 37.24 MB / 0.5552 GB, free: 8.316 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002017/1.958, allocations: 7.938 kB / 0.5552 GB, free: 8.309 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000314/1.959, allocations: 75.62 kB / 0.5553 GB, free: 8.234 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/1.959, allocations: 79.36 kB / 0.5554 GB, free: 8.156 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02378/1.982, allocations: 7.371 MB / 0.5626 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005803/1.983, allocations: 326.9 kB / 0.5629 GB, free: 476 kB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/1.983, allocations: 102.9 kB / 0.563 GB, free: 368 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002403/1.984, allocations: 127.4 kB / 0.5631 GB, free: 240 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/1.984, allocations: 95.45 kB / 0.5632 GB, free: 144 kB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.242e-05/1.984, allocations: 8 kB / 0.5632 GB, free: 136 kB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03327/2.017, allocations: 17.88 MB / 0.5807 GB, free: 14.23 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.548e-05/2.017, allocations: 39.78 kB / 0.5807 GB, free: 14.19 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002052/2.017, allocations: 145 kB / 0.5809 GB, free: 14.04 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0239/2.041, allocations: 8.394 MB / 0.589 GB, free: 5.629 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.388e-06/2.041, allocations: 0 / 0.589 GB, free: 5.629 MB / 478.1 MB Notification: Performance of FrontEnd: time 4.118e-06/2.041, allocations: 0 / 0.589 GB, free: 5.629 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.635e-06/2.041, allocations: 0 / 0.589 GB, free: 5.629 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00626/2.048, allocations: 1.412 MB / 0.5904 GB, free: 4.164 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/2.048, allocations: 8.031 kB / 0.5904 GB, free: 4.156 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000104/2.048, allocations: 66.53 kB / 0.5905 GB, free: 4.082 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.803e-05/2.048, allocations: 27.62 kB / 0.5905 GB, free: 4.055 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/2.048, allocations: 232.6 kB / 0.5907 GB, free: 3.789 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.415e-05/2.048, allocations: 18.03 kB / 0.5908 GB, free: 3.773 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/2.048, allocations: 20 kB / 0.5908 GB, free: 3.754 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005863/2.049, allocations: 317 kB / 0.5911 GB, free: 3.414 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.596e-05/2.049, allocations: 3.938 kB / 0.5911 GB, free: 3.41 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.888e-05/2.049, allocations: 15.94 kB / 0.5911 GB, free: 3.395 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.335e-05/2.049, allocations: 15.98 kB / 0.5911 GB, free: 3.379 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002997/2.049, allocations: 169.1 kB / 0.5913 GB, free: 3.215 MB / 478.1 MB 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.03859/2.088, allocations: 18.19 MB / 0.609 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004947/2.089, allocations: 146.6 kB / 0.6092 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/2.089, allocations: 92.78 kB / 0.6093 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1547/2.243, allocations: 78.12 MB / 0.6856 GB, free: 7.988 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/2.243, allocations: 38.5 kB / 0.6856 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=34): time 1.903e-06/2.243, allocations: 0 / 0.6856 GB, free: 7.941 MB / 0.5762 GB Notification: Performance of matching and sorting (n=34): time 0.000916/2.244, allocations: 423.4 kB / 0.686 GB, free: 7.5 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/2.244, allocations: 81.11 kB / 0.6861 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002476/2.245, allocations: 223.1 kB / 0.6863 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/2.245, allocations: 25.7 kB / 0.6863 GB, free: 7.141 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/2.245, allocations: 156.4 kB / 0.6865 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 7.599e-05/2.245, allocations: 110.3 kB / 0.6866 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.915e-05/2.245, allocations: 29.7 kB / 0.6866 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000123/2.245, allocations: 338.8 kB / 0.6869 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/2.245, allocations: 71.97 kB / 0.687 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/2.245, allocations: 139.3 kB / 0.6871 GB, free: 6.273 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002698/2.246, allocations: 221.6 kB / 0.6873 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/2.246, allocations: 8.031 kB / 0.6873 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004252/2.246, allocations: 298 kB / 0.6876 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/2.246, allocations: 4 kB / 0.6876 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/2.246, allocations: 4 kB / 0.6876 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009886/2.247, allocations: 160.8 kB / 0.6878 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.699e-05/2.247, allocations: 27.88 kB / 0.6878 GB, free: 5.535 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005177/2.248, allocations: 0.6031 MB / 0.6884 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001533/2.248, allocations: 35.7 kB / 0.6884 GB, free: 4.871 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/2.248, allocations: 8 kB / 0.6884 GB, free: 4.863 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 4 (Diaphragm.C2.b,Diaphragm.C1.a,PuitsP1.C.a,SourceP1.C.b) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 12 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001471/2.248, allocations: 149.7 kB / 0.6886 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.148e-05/2.248, allocations: 19.72 kB / 0.6886 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009272/2.249, allocations: 0.6005 MB / 0.6892 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005209/2.25, allocations: 230.3 kB / 0.6894 GB, free: 3.785 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/2.25, allocations: 3.938 kB / 0.6894 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/2.25, allocations: 0 / 0.6894 GB, free: 3.781 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/2.251, allocations: 0.7377 MB / 0.6901 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/2.251, allocations: 0 / 0.6901 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.769e-05/2.251, allocations: 23.98 kB / 0.6902 GB, free: 2.961 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006959/2.252, allocations: 148.7 kB / 0.6903 GB, free: 2.812 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/2.252, allocations: 7.984 kB / 0.6903 GB, free: 2.805 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004611/2.252, allocations: 0.6358 MB / 0.6909 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/2.252, allocations: 0 / 0.6909 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006057/2.253, allocations: 353.1 kB / 0.6913 GB, free: 1.785 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/2.253, allocations: 144.6 kB / 0.6914 GB, free: 1.625 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/2.253, allocations: 4 kB / 0.6914 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001242/2.253, allocations: 12 kB / 0.6914 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/2.253, allocations: 11.98 kB / 0.6914 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/2.253, allocations: 4 kB / 0.6914 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002378/2.253, allocations: 237.9 kB / 0.6917 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/2.253, allocations: 0 / 0.6917 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00344/2.257, allocations: 1.214 MB / 0.6929 GB, free: 152 kB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1764/2.433, allocations: 2.56 MB / 0.6954 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0006154/2.434, allocations: 248 kB / 0.6956 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/2.434, allocations: 0.5 kB / 0.6956 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000241/2.434, allocations: 99 kB / 0.6957 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007918/2.435, allocations: 117.3 kB / 0.6958 GB, free: 227.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004446/2.439, allocations: 3.188 MB / 0.6989 GB, free: 226 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/2.44, allocations: 0.7707 MB / 0.6997 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001565/2.44, allocations: 25.7 kB / 0.6997 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001181/2.44, allocations: 95.39 kB / 0.6998 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of SimCode: time 5.92e-07/2.44, allocations: 0.6875 kB / 0.6998 GB, free: 225.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06888/2.509, allocations: 47.13 MB / 0.7458 GB, free: 199.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001505/2.509, allocations: 248.4 kB / 0.746 GB, free: 199.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.05/6.558, allocations: 0 / 0.746 GB, free: 199.5 MB / 0.5762 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 ThermoSysPro_ThermoSysPro_Examples_Book_SimpleExamples_PressureLoss_TestDiaphragm.fmu > ThermoSysPro_ThermoSysPro.Examples.Book.SimpleExamples.PressureLoss.TestDiaphragm.pipe 2>&1)