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.001705/0.001705, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001821/0.001821, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.356/1.356, 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.2885/0.2885, allocations: 48.84 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.001766/0.001766, allocations: 71.91 kB / 450 MB, free: 9.055 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1235, allocations: 59.16 MB / 0.4972 GB, free: 13.76 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestCompressorInertia): time 0.4383/0.5618, allocations: 170.6 MB / 0.6639 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.005705/0.5676, allocations: 3.888 MB / 0.6677 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005589/0.5682, allocations: 11.94 kB / 0.6677 GB, free: 12 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000995/0.5692, allocations: 286.2 kB / 0.668 GB, free: 11.71 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.001471/0.5707, allocations: 0.5756 MB / 0.6685 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004666/0.5754, allocations: 1.65 MB / 0.6701 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001709/0.5771, allocations: 1.327 MB / 0.6714 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007884/0.5779, allocations: 421.4 kB / 0.6718 GB, free: 7.746 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001143/0.5791, allocations: 0.5295 MB / 0.6724 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008633/0.5799, allocations: 0.5177 MB / 0.6729 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.00017/0.5801, allocations: 60 kB / 0.6729 GB, free: 6.637 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001702/0.5818, allocations: 0.6821 MB / 0.6736 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0005518/0.5824, allocations: 470.8 kB / 0.674 GB, free: 5.492 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000808/0.5832, allocations: 0.5554 MB / 0.6746 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002208/0.5854, allocations: 1.581 MB / 0.6761 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.5855, allocations: 0 / 0.6761 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.703e-06/0.5855, allocations: 0 / 0.6761 GB, free: 3.348 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.767e-05/0.5855, allocations: 4 kB / 0.6761 GB, free: 3.344 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.002873/0.5884, allocations: 1.536 MB / 0.6776 GB, free: 1.754 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.388e-05/0.5885, allocations: 19.83 kB / 0.6776 GB, free: 1.734 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/0.5887, allocations: 98.39 kB / 0.6777 GB, free: 1.629 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008622/0.5895, allocations: 195.7 kB / 0.6779 GB, free: 1.438 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0015/0.591, allocations: 0.8678 MB / 0.6788 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.5911, allocations: 37.31 kB / 0.6788 GB, free: 488 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.5912, allocations: 52 kB / 0.6789 GB, free: 436 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001115/0.5923, allocations: 0.6316 MB / 0.6795 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.5923, allocations: 0 / 0.6795 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.451e-05/0.5924, allocations: 27.94 kB / 0.6795 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.5924, allocations: 12 kB / 0.6795 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008187/0.5933, allocations: 0.4931 MB / 0.68 GB, free: 15.25 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.004797/0.5981, allocations: 2.564 MB / 0.6825 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003335/0.5984, allocations: 202.5 kB / 0.6827 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.5985, allocations: 76.83 kB / 0.6828 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002765/0.5988, allocations: 109.1 kB / 0.6829 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.5989, allocations: 46.5 kB / 0.6829 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=20): time 2.284e-06/0.5989, allocations: 0 / 0.6829 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=20): time 0.0007874/0.5997, allocations: 361.1 kB / 0.6833 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.5997, allocations: 55.41 kB / 0.6833 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002414/0.6022, allocations: 1.903 MB / 0.6852 GB, free: 9.719 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.6022, allocations: 33.7 kB / 0.6852 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004761/0.6027, allocations: 0.5799 MB / 0.6858 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 6.507e-05/0.6028, allocations: 75.38 kB / 0.6858 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.6029, allocations: 86.02 kB / 0.6859 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.603, allocations: 325.9 kB / 0.6862 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.6033, allocations: 138.6 kB / 0.6864 GB, free: 8.473 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002687/0.6036, allocations: 230.5 kB / 0.6866 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004311/0.604, allocations: 333.5 kB / 0.6869 GB, free: 7.828 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.604, allocations: 3.938 kB / 0.6869 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008926/0.6049, allocations: 0.512 MB / 0.6874 GB, free: 7.305 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.6049, allocations: 12.28 kB / 0.6874 GB, free: 7.293 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.605, allocations: 8 kB / 0.6874 GB, free: 7.285 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.605, allocations: 8 kB / 0.6874 GB, free: 7.277 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006082/0.6056, allocations: 116.7 kB / 0.6875 GB, free: 7.164 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001012/0.6066, allocations: 1.793 MB / 0.6893 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005796/0.6072, allocations: 71.44 kB / 0.6894 GB, free: 5.23 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.397e-05/0.6073, allocations: 21.58 kB / 0.6894 GB, free: 5.211 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.0005942/0.6079, allocations: 386 kB / 0.6897 GB, free: 4.824 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002656/0.6082, allocations: 131.2 kB / 0.6899 GB, free: 4.695 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000605/0.6088, allocations: 340.2 kB / 0.6902 GB, free: 4.359 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.71e-06/0.6088, allocations: 4 kB / 0.6902 GB, free: 4.355 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.6088, allocations: 0 / 0.6902 GB, free: 4.355 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.6088, allocations: 3.984 kB / 0.6902 GB, free: 4.352 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009616/0.6098, allocations: 0.7068 MB / 0.6909 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.6098, allocations: 0 / 0.6909 GB, free: 3.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004017/0.6102, allocations: 79.88 kB / 0.691 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.6102, allocations: 0 / 0.691 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.6102, allocations: 0 / 0.691 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000974/0.6112, allocations: 1.785 MB / 0.6927 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.6112, allocations: 5.719 kB / 0.6927 GB, free: 1.652 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007115/0.612, allocations: 0.4894 MB / 0.6932 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004626/0.6124, allocations: 256.2 kB / 0.6934 GB, free: 0.875 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.6126, allocations: 4 kB / 0.6934 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005149/0.6131, allocations: 27.86 kB / 0.6935 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.097e-05/0.6132, allocations: 7.984 kB / 0.6935 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.127e-05/0.6132, allocations: 23.97 kB / 0.6935 GB, free: 0.8125 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001809/0.615, allocations: 1.358 MB / 0.6948 GB, free: 15.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.3e-07/0.615, allocations: 0 / 0.6948 GB, free: 15.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0007932/0.6158, allocations: 239.6 kB / 0.6951 GB, free: 15.22 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.002175/0.618, allocations: 1.444 MB / 0.6965 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007253/0.6188, allocations: 284.3 kB / 0.6967 GB, free: 13.47 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6188, allocations: 0 / 0.6967 GB, free: 13.47 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002939/0.6191, allocations: 107.9 kB / 0.6968 GB, free: 13.36 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.6209, allocations: 389 kB / 0.6972 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/0.6352, allocations: 10.85 MB / 0.7078 GB, free: 1.914 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007318/0.6359, allocations: 1.11 MB / 0.7089 GB, free: 0.7734 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0006812/0.6366, allocations: 228.6 kB / 0.7091 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004987/0.6371, allocations: 403.3 kB / 0.7095 GB, free: 156 kB / 0.545 GB Notification: Performance of SimCode: time 8.02e-07/0.6372, allocations: 3.938 kB / 0.7095 GB, free: 152 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06106/0.6982, allocations: 29.85 MB / 0.7387 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.62/14.32, allocations: 4.656 kB / 0.7387 GB, free: 2.191 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)