Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.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.TestCompressorInertia,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestCompressorInertia",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.GasComponents.TestCompressorInertia,fileNamePrefix="ThermoPower_ThermoPower_Test_GasComponents_TestCompressorInertia",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.001873/0.001873, allocations: 106 kB / 17.06 MB, free: 6.098 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.002036/0.002036, allocations: 197.4 kB / 18 MB, free: 5.168 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.367/1.367, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2766/0.2766, 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.002106/0.002106, allocations: 67.89 kB / 450 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1233, allocations: 59.15 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestCompressorInertia): time 0.4518/0.5752, allocations: 170.6 MB / 0.6639 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.00619/0.5815, allocations: 3.903 MB / 0.6677 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000602/0.5821, allocations: 7.938 kB / 0.6677 GB, free: 12 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0009281/0.5831, allocations: 266.3 kB / 0.668 GB, free: 11.74 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.001232/0.5844, allocations: 0.5716 MB / 0.6685 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004365/0.5887, allocations: 1.64 MB / 0.6701 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001863/0.5906, allocations: 1.323 MB / 0.6714 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006837/0.5913, allocations: 409.6 kB / 0.6718 GB, free: 7.797 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000916/0.5922, allocations: 0.5248 MB / 0.6723 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007977/0.5931, allocations: 0.5177 MB / 0.6728 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001437/0.5932, allocations: 63.98 kB / 0.6729 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001669/0.5949, allocations: 0.6821 MB / 0.6736 GB, free: 6.008 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004573/0.5954, allocations: 474.8 kB / 0.674 GB, free: 5.543 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006258/0.596, allocations: 0.5554 MB / 0.6745 GB, free: 4.984 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002086/0.5981, allocations: 1.576 MB / 0.6761 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.5981, allocations: 0 / 0.6761 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5981, allocations: 0 / 0.6761 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.554e-05/0.5981, allocations: 0 / 0.6761 GB, free: 3.402 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: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.002296/0.6004, allocations: 1.544 MB / 0.6776 GB, free: 1.805 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.6005, allocations: 11.89 kB / 0.6776 GB, free: 1.793 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001241/0.6006, allocations: 102.5 kB / 0.6777 GB, free: 1.684 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007179/0.6013, allocations: 187 kB / 0.6779 GB, free: 1.5 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.6026, allocations: 0.8755 MB / 0.6787 GB, free: 0.5703 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.988e-05/0.6026, allocations: 45.25 kB / 0.6788 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.6027, allocations: 48 kB / 0.6788 GB, free: 488 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.6038, allocations: 0.6277 MB / 0.6794 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.6038, allocations: 4 kB / 0.6794 GB, free: 15.83 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.6039, allocations: 23.94 kB / 0.6795 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.6039, allocations: 12 kB / 0.6795 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007676/0.6047, allocations: 0.4892 MB / 0.68 GB, free: 15.3 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.004261/0.6089, allocations: 2.562 MB / 0.6825 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003492/0.6093, allocations: 198.6 kB / 0.6826 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001346/0.6094, allocations: 80.83 kB / 0.6827 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002653/0.6097, allocations: 113.1 kB / 0.6828 GB, free: 12.18 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.6098, allocations: 38.56 kB / 0.6829 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=20): time 2.074e-06/0.6098, allocations: 0 / 0.6829 GB, free: 12.13 MB / 0.5294 GB Notification: Performance of matching and sorting (n=20): time 0.000711/0.6105, allocations: 361 kB / 0.6832 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.951e-05/0.6106, allocations: 55.39 kB / 0.6833 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.6129, allocations: 1.91 MB / 0.6851 GB, free: 9.773 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/0.6129, allocations: 33.7 kB / 0.6852 GB, free: 9.734 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000519/0.6135, allocations: 0.576 MB / 0.6857 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.587e-05/0.6135, allocations: 75.38 kB / 0.6858 GB, free: 9.082 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001344/0.6137, allocations: 82.02 kB / 0.6859 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001316/0.6138, allocations: 321.9 kB / 0.6862 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002293/0.614, allocations: 139.5 kB / 0.6863 GB, free: 8.539 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003027/0.6144, allocations: 238.5 kB / 0.6865 GB, free: 8.262 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004974/0.6149, allocations: 333.5 kB / 0.6869 GB, free: 7.887 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6149, allocations: 0 / 0.6869 GB, free: 7.887 MB / 0.5294 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009095/0.6158, allocations: 0.5083 MB / 0.6874 GB, free: 7.371 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.6158, allocations: 19.83 kB / 0.6874 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.808e-06/0.6158, allocations: 7.938 kB / 0.6874 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.6159, allocations: 4 kB / 0.6874 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005785/0.6164, allocations: 118.2 kB / 0.6875 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.6176, allocations: 1.79 MB / 0.6892 GB, free: 5.367 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/0.6181, allocations: 71.44 kB / 0.6893 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/0.6181, allocations: 31.86 kB / 0.6893 GB, free: 5.266 MB / 0.5294 GB Warning: Assuming fixed start value for the following 1 variables: Inertia1.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (47): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005467/0.6187, allocations: 382.4 kB / 0.6897 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002234/0.6189, allocations: 131.2 kB / 0.6898 GB, free: 4.754 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000582/0.6195, allocations: 343.3 kB / 0.6902 GB, free: 4.414 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.6195, allocations: 4 kB / 0.6902 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.6195, allocations: 0 / 0.6902 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.6195, allocations: 0 / 0.6902 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009268/0.6205, allocations: 0.7155 MB / 0.6909 GB, free: 3.641 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.6205, allocations: 8 kB / 0.6909 GB, free: 3.633 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003681/0.6209, allocations: 64.95 kB / 0.6909 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.6209, allocations: 0 / 0.6909 GB, free: 3.57 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/0.6209, allocations: 8 kB / 0.6909 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001057/0.622, allocations: 1.785 MB / 0.6927 GB, free: 1.707 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/0.622, allocations: 6.438 kB / 0.6927 GB, free: 1.703 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007159/0.6227, allocations: 0.4893 MB / 0.6932 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003211/0.623, allocations: 252.2 kB / 0.6934 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.6232, allocations: 4 kB / 0.6934 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004452/0.6236, allocations: 24.17 kB / 0.6934 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.309e-05/0.6237, allocations: 15.98 kB / 0.6935 GB, free: 0.8867 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-05/0.6237, allocations: 23.97 kB / 0.6935 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001739/0.6254, allocations: 1.358 MB / 0.6948 GB, free: 15.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.21e-07/0.6255, allocations: 0 / 0.6948 GB, free: 15.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007564/0.6262, allocations: 239.6 kB / 0.695 GB, free: 15.27 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia1.phi,Inertia1.w) * 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 (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002646/0.6289, allocations: 1.428 MB / 0.6964 GB, free: 13.81 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007431/0.6296, allocations: 287.6 kB / 0.6967 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.6297, allocations: 4 kB / 0.6967 GB, free: 13.53 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002902/0.63, allocations: 111.8 kB / 0.6968 GB, free: 13.42 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001765/0.6317, allocations: 393.9 kB / 0.6972 GB, free: 13.04 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/0.6469, allocations: 10.85 MB / 0.7078 GB, free: 1.969 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008707/0.6478, allocations: 1.102 MB / 0.7089 GB, free: 0.8359 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0007375/0.6485, allocations: 232.6 kB / 0.7091 GB, free: 0.6055 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005374/0.6491, allocations: 407.3 kB / 0.7095 GB, free: 212 kB / 0.545 GB Notification: Performance of SimCode: time 7.82e-07/0.6491, allocations: 0 / 0.7095 GB, free: 212 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06606/0.7152, allocations: 29.85 MB / 0.7386 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.56, allocations: 16.72 kB / 0.7386 GB, free: 2.242 MB / 0.5762 GB (rm -f ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe ; mkfifo ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe >> ../files/ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.sim & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia_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_TestCompressorInertia.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestCompressorInertia.pipe 2>&1)