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.001197/0.001197, allocations: 110.1 kB / 16.92 MB, free: 5.766 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.001157/0.001157, allocations: 191.3 kB / 17.85 MB, free: 5.172 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.227/1.227, allocations: 205.1 MB / 223.7 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.24/0.24, allocations: 48.84 MB / 319.9 MB, free: 11.1 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.001433/0.001433, allocations: 64.52 kB / 390.2 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08489, allocations: 59.15 MB / 449.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestCompressorInertia): time 0.3406/0.4255, allocations: 170.6 MB / 0.6054 GB, free: 5.066 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005029/0.4306, allocations: 3.913 MB / 0.6093 GB, free: 1.898 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.4311, allocations: 5.656 kB / 0.6093 GB, free: 1.898 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008221/0.4319, allocations: 275.6 kB / 0.6095 GB, free: 1.672 MB / 430.1 MB [/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.001173/0.4331, allocations: 0.5612 MB / 0.6101 GB, free: 1.258 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003542/0.4366, allocations: 1.655 MB / 0.6117 GB, free: 76 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.438, allocations: 1.324 MB / 0.613 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000552/0.4386, allocations: 404.4 kB / 0.6134 GB, free: 15.08 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007093/0.4393, allocations: 0.5106 MB / 0.6139 GB, free: 14.81 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006246/0.4399, allocations: 0.5202 MB / 0.6144 GB, free: 14.53 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.4401, allocations: 57.88 kB / 0.6144 GB, free: 14.53 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.4415, allocations: 0.7177 MB / 0.6151 GB, free: 14.18 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003769/0.4419, allocations: 477.7 kB / 0.6156 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005802/0.4425, allocations: 0.5523 MB / 0.6161 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.4442, allocations: 1.557 MB / 0.6176 GB, free: 12.53 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.4442, allocations: 0 / 0.6176 GB, free: 12.53 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4442, allocations: 1.906 kB / 0.6177 GB, free: 12.53 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.574e-05/0.4442, allocations: 0 / 0.6177 GB, free: 12.53 MB / 446.1 MB 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.002271/0.4465, allocations: 1.505 MB / 0.6191 GB, free: 11.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.4465, allocations: 14.11 kB / 0.6191 GB, free: 11.37 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.4467, allocations: 102.9 kB / 0.6192 GB, free: 11.28 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007024/0.4474, allocations: 181 kB / 0.6194 GB, free: 11.19 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.4485, allocations: 0.8515 MB / 0.6202 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.43e-05/0.4485, allocations: 41.12 kB / 0.6203 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.724e-05/0.4486, allocations: 51.28 kB / 0.6203 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008624/0.4494, allocations: 0.6321 MB / 0.6209 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.825e-05/0.4495, allocations: 4 kB / 0.6209 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.857e-05/0.4495, allocations: 27.34 kB / 0.621 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.4496, allocations: 12.72 kB / 0.621 GB, free: 10.15 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006413/0.4502, allocations: 494.1 kB / 0.6215 GB, free: 9.922 MB / 446.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.003678/0.4539, allocations: 2.582 MB / 0.624 GB, free: 7.355 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002934/0.4542, allocations: 210.5 kB / 0.6242 GB, free: 7.141 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00011/0.4543, allocations: 76.83 kB / 0.6242 GB, free: 7.062 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002403/0.4546, allocations: 117.1 kB / 0.6244 GB, free: 6.93 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.4546, allocations: 42.47 kB / 0.6244 GB, free: 6.879 MB / 446.1 MB Notification: Performance of pre-optimization done (n=20): time 1.413e-06/0.4546, allocations: 0 / 0.6244 GB, free: 6.879 MB / 446.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006036/0.4552, allocations: 353.6 kB / 0.6247 GB, free: 6.527 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.853e-05/0.4553, allocations: 63.33 kB / 0.6248 GB, free: 6.453 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001943/0.4572, allocations: 1.903 MB / 0.6267 GB, free: 4.531 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.771e-05/0.4573, allocations: 29.7 kB / 0.6267 GB, free: 4.496 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000404/0.4577, allocations: 0.5676 MB / 0.6272 GB, free: 3.926 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.4577, allocations: 82.86 kB / 0.6273 GB, free: 3.844 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.4578, allocations: 81.97 kB / 0.6274 GB, free: 3.758 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.595e-05/0.4579, allocations: 325.9 kB / 0.6277 GB, free: 3.434 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001987/0.4581, allocations: 134 kB / 0.6278 GB, free: 3.301 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/0.4584, allocations: 234 kB / 0.6281 GB, free: 3.023 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003801/0.4588, allocations: 334.5 kB / 0.6284 GB, free: 2.648 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.4588, allocations: 4 kB / 0.6284 GB, free: 2.645 MB / 446.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007297/0.4595, allocations: 0.4963 MB / 0.6289 GB, free: 2.141 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.4595, allocations: 11.98 kB / 0.6289 GB, free: 2.129 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.4596, allocations: 4 kB / 0.6289 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4596, allocations: 4 kB / 0.6289 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005272/0.4601, allocations: 121.4 kB / 0.629 GB, free: 2.004 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007841/0.4609, allocations: 1.786 MB / 0.6307 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004315/0.4613, allocations: 75.39 kB / 0.6308 GB, free: 76 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.319e-05/0.4614, allocations: 31.92 kB / 0.6308 GB, free: 44 kB / 446.1 MB 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.0004198/0.4618, allocations: 381.4 kB / 0.6312 GB, free: 15.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.462, allocations: 122.5 kB / 0.6313 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004716/0.4625, allocations: 340.1 kB / 0.6317 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.4625, allocations: 4 kB / 0.6317 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.4625, allocations: 4 kB / 0.6317 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.4625, allocations: 0 / 0.6317 GB, free: 15.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007127/0.4632, allocations: 0.7146 MB / 0.6324 GB, free: 14.43 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-06/0.4633, allocations: 3.938 kB / 0.6324 GB, free: 14.42 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003375/0.4636, allocations: 72.97 kB / 0.6324 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.379e-06/0.4636, allocations: 2 kB / 0.6324 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.4636, allocations: 4 kB / 0.6324 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000729/0.4644, allocations: 1.781 MB / 0.6342 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4644, allocations: 3.938 kB / 0.6342 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005636/0.465, allocations: 0.4934 MB / 0.6347 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002841/0.4652, allocations: 243.6 kB / 0.6349 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/0.4654, allocations: 4 kB / 0.6349 GB, free: 11.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004423/0.4658, allocations: 23.92 kB / 0.6349 GB, free: 11.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.761e-05/0.4659, allocations: 15.92 kB / 0.6349 GB, free: 11.68 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.4659, allocations: 20.02 kB / 0.635 GB, free: 11.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001448/0.4674, allocations: 1.362 MB / 0.6363 GB, free: 10.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.283e-06/0.4674, allocations: 0 / 0.6363 GB, free: 10.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006872/0.4681, allocations: 239.7 kB / 0.6365 GB, free: 10.06 MB / 462.1 MB 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.001879/0.4699, allocations: 1.421 MB / 0.6379 GB, free: 8.625 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006507/0.4706, allocations: 295.8 kB / 0.6382 GB, free: 8.336 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.4706, allocations: 0.875 kB / 0.6382 GB, free: 8.336 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002703/0.4709, allocations: 111.9 kB / 0.6383 GB, free: 8.227 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.4725, allocations: 384.3 kB / 0.6387 GB, free: 7.848 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0128/0.4853, allocations: 11.89 MB / 0.6503 GB, free: 11.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006112/0.486, allocations: 1.11 MB / 0.6514 GB, free: 10.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0006207/0.4866, allocations: 236.6 kB / 0.6516 GB, free: 10.17 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004187/0.487, allocations: 407.2 kB / 0.652 GB, free: 9.77 MB / 478.1 MB Notification: Performance of SimCode: time 6.01e-07/0.487, allocations: 0 / 0.652 GB, free: 9.77 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05061/0.5376, allocations: 29.25 MB / 0.6805 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.25, allocations: 4.562 kB / 0.6805 GB, free: 12.4 MB / 0.4981 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)