Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestCompressorConstSpeed,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestCompressorConstSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestCompressorConstSpeed,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestCompressorConstSpeed",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 112.8 kB / 17.06 MB, free: 5.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001246, allocations: 200 kB / 18.01 MB, free: 4.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.373/1.373, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2831/0.2831, allocations: 48.85 MB / 320.1 MB, free: 11 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002101/0.002101, allocations: 67.91 kB / 450 MB, free: 9.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1105, allocations: 59.16 MB / 0.4973 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestCompressorConstSpeed): time 0.4132/0.5237, allocations: 170.6 MB / 0.6639 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.006319/0.5301, allocations: 3.895 MB / 0.6677 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006412/0.5308, allocations: 7.938 kB / 0.6677 GB, free: 12 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001124/0.532, allocations: 274.3 kB / 0.6679 GB, free: 11.73 MB / 0.5137 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.001615/0.5336, allocations: 0.5638 MB / 0.6685 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005639/0.5393, allocations: 1.646 MB / 0.6701 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002523/0.5418, allocations: 1.323 MB / 0.6714 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000888/0.5427, allocations: 401.5 kB / 0.6718 GB, free: 7.805 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.5438, allocations: 0.51 MB / 0.6723 GB, free: 7.293 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009163/0.5447, allocations: 0.5178 MB / 0.6728 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001965/0.5449, allocations: 59.94 kB / 0.6728 GB, free: 6.715 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003411/0.5483, allocations: 1.434 MB / 0.6742 GB, free: 5.277 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0005267/0.5489, allocations: 462.8 kB / 0.6747 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006638/0.5496, allocations: 0.5515 MB / 0.6752 GB, free: 4.27 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002961/0.5525, allocations: 1.936 MB / 0.6771 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.5525, allocations: 4 kB / 0.6771 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.114e-06/0.5526, allocations: 0 / 0.6771 GB, free: 2.324 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.208e-05/0.5526, allocations: 0 / 0.6771 GB, free: 2.324 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002355/0.5549, allocations: 1.602 MB / 0.6787 GB, free: 0.668 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.555, allocations: 11.89 kB / 0.6787 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001236/0.5551, allocations: 102.5 kB / 0.6788 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007489/0.5559, allocations: 183.1 kB / 0.679 GB, free: 376 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00121/0.5571, allocations: 0.8794 MB / 0.6798 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/0.5571, allocations: 38 kB / 0.6799 GB, free: 15.39 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.822e-05/0.5572, allocations: 52 kB / 0.6799 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.5582, allocations: 0.6159 MB / 0.6805 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.5583, allocations: 0 / 0.6805 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.51e-05/0.5583, allocations: 27.94 kB / 0.6805 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.5584, allocations: 12 kB / 0.6806 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007364/0.5591, allocations: 472.9 kB / 0.681 GB, free: 14.21 MB / 0.5294 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.004206/0.5633, allocations: 2.59 MB / 0.6835 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.5636, allocations: 140.9 kB / 0.6837 GB, free: 11.31 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.468e-05/0.5637, allocations: 56.84 kB / 0.6837 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002586/0.564, allocations: 129 kB / 0.6838 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.564, allocations: 38.56 kB / 0.6839 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=13): time 1.813e-06/0.564, allocations: 0 / 0.6839 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of matching and sorting (n=13): time 0.0005424/0.5646, allocations: 284.8 kB / 0.6842 GB, free: 10.78 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.5646, allocations: 59.39 kB / 0.6842 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002309/0.5669, allocations: 1.927 MB / 0.6861 GB, free: 8.762 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.567, allocations: 33.7 kB / 0.6861 GB, free: 8.723 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005313/0.5675, allocations: 0.5952 MB / 0.6867 GB, free: 8.125 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/0.5676, allocations: 51.62 kB / 0.6868 GB, free: 8.074 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000137/0.5677, allocations: 77.64 kB / 0.6868 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001358/0.5678, allocations: 322 kB / 0.6871 GB, free: 7.672 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.5681, allocations: 130.1 kB / 0.6873 GB, free: 7.543 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.5684, allocations: 243.4 kB / 0.6875 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004352/0.5688, allocations: 333.7 kB / 0.6878 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.5688, allocations: 1.312 kB / 0.6878 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007914/0.5696, allocations: 0.5046 MB / 0.6883 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.5696, allocations: 11.91 kB / 0.6883 GB, free: 6.328 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.5697, allocations: 7.938 kB / 0.6883 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.5697, allocations: 11.94 kB / 0.6883 GB, free: 6.309 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005109/0.5702, allocations: 108.7 kB / 0.6884 GB, free: 6.203 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007169/0.5709, allocations: 1.192 MB / 0.6896 GB, free: 4.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.5714, allocations: 83.33 kB / 0.6897 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.5715, allocations: 20 kB / 0.6897 GB, free: 4.863 MB / 0.5294 GB Warning: Assuming fixed start value for the following 1 variables: ConstantSpeed1.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 initialization (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004822/0.572, allocations: 377.5 kB / 0.6901 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.5721, allocations: 127.2 kB / 0.6902 GB, free: 4.359 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004431/0.5726, allocations: 276.9 kB / 0.6904 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.5726, allocations: 4.094 kB / 0.6904 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.5726, allocations: 0 / 0.6904 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.5726, allocations: 3.938 kB / 0.6905 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008305/0.5735, allocations: 0.6915 MB / 0.6911 GB, free: 3.324 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.5735, allocations: 0 / 0.6911 GB, free: 3.324 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000254/0.5737, allocations: 47.95 kB / 0.6912 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.5737, allocations: 0 / 0.6912 GB, free: 3.277 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.5738, allocations: 5.438 kB / 0.6912 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006711/0.5744, allocations: 1.188 MB / 0.6923 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5745, allocations: 0 / 0.6923 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005035/0.575, allocations: 413.7 kB / 0.6927 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/0.5753, allocations: 252.3 kB / 0.693 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001064/0.5754, allocations: 4.344 kB / 0.693 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004139/0.5758, allocations: 23.97 kB / 0.693 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.556e-05/0.5758, allocations: 7.984 kB / 0.693 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-05/0.5759, allocations: 19.97 kB / 0.693 GB, free: 1.297 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001693/0.5776, allocations: 1.37 MB / 0.6944 GB, free: 15.92 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5776, allocations: 3.938 kB / 0.6944 GB, free: 15.92 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007388/0.5783, allocations: 243.5 kB / 0.6946 GB, free: 15.68 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (ConstantSpeed1.phi) * 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002484/0.5808, allocations: 1.391 MB / 0.696 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000583/0.5814, allocations: 256.2 kB / 0.6962 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5814, allocations: 0 / 0.6962 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001821/0.5816, allocations: 71.91 kB / 0.6963 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001579/0.5832, allocations: 369.6 kB / 0.6966 GB, free: 13.59 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.5973, allocations: 10.72 MB / 0.7071 GB, free: 2.613 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008465/0.5982, allocations: 1.106 MB / 0.7082 GB, free: 1.477 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0006921/0.5989, allocations: 220.6 kB / 0.7084 GB, free: 1.258 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005449/0.5995, allocations: 403.3 kB / 0.7088 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of SimCode: time 8.31e-07/0.5995, allocations: 0 / 0.7088 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06807/0.6675, allocations: 29.54 MB / 0.7376 GB, free: 3.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.65/14.32, allocations: 8 kB / 0.7376 GB, free: 3.223 MB / 0.5762 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ThermoPower_ThermoPower_Test_GasComponents_TestCompressorConstSpeed.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed.pipe 2>&1)