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.001558/0.001564, allocations: 107.5 kB / 17.01 MB, free: 6.25 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.001726/0.001726, allocations: 190.9 kB / 17.95 MB, free: 5.332 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.389/1.389, allocations: 205.1 MB / 223.8 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2698/0.2698, allocations: 48.84 MB / 320 MB, free: 11.05 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.001612/0.001612, allocations: 76.72 kB / 390.3 MB, free: 48.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.09979, allocations: 59.16 MB / 449.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.GasComponents.TestCompressorConstSpeed): time 0.3863/0.4861, allocations: 170.6 MB / 0.6056 GB, free: 4.961 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005611/0.4918, allocations: 3.903 MB / 0.6094 GB, free: 1.805 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005398/0.4924, allocations: 9.562 kB / 0.6094 GB, free: 1.801 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008875/0.4933, allocations: 282.9 kB / 0.6097 GB, free: 1.566 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.001229/0.4946, allocations: 0.5659 MB / 0.6102 GB, free: 1.148 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004018/0.4986, allocations: 1.646 MB / 0.6118 GB, free: 15.97 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001578/0.5002, allocations: 1.305 MB / 0.6131 GB, free: 15.24 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006676/0.5009, allocations: 396.1 kB / 0.6135 GB, free: 14.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000916/0.5018, allocations: 0.5212 MB / 0.614 GB, free: 14.71 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007796/0.5026, allocations: 0.5162 MB / 0.6145 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000163/0.5027, allocations: 55.44 kB / 0.6145 GB, free: 14.43 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002959/0.5057, allocations: 1.433 MB / 0.6159 GB, free: 13.68 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005026/0.5062, allocations: 474.3 kB / 0.6164 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008472/0.5071, allocations: 0.5462 MB / 0.6169 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003598/0.5107, allocations: 1.93 MB / 0.6188 GB, free: 11.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.5107, allocations: 8 kB / 0.6188 GB, free: 11.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5108, allocations: 0 / 0.6188 GB, free: 11.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.655e-05/0.5108, allocations: 0 / 0.6188 GB, free: 11.84 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.0032/0.514, allocations: 1.548 MB / 0.6203 GB, free: 10.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.5141, allocations: 18.02 kB / 0.6204 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001637/0.5143, allocations: 95.8 kB / 0.6204 GB, free: 10.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009187/0.5152, allocations: 183.6 kB / 0.6206 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.5166, allocations: 0.8656 MB / 0.6215 GB, free: 9.859 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.5166, allocations: 39.72 kB / 0.6215 GB, free: 9.844 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.336e-05/0.5167, allocations: 52.38 kB / 0.6216 GB, free: 9.824 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.5177, allocations: 0.6135 MB / 0.6222 GB, free: 9.367 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.5178, allocations: 1.688 kB / 0.6222 GB, free: 9.367 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.498e-05/0.5179, allocations: 27.94 kB / 0.6222 GB, free: 9.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.5179, allocations: 12 kB / 0.6222 GB, free: 9.328 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006606/0.5185, allocations: 476.9 kB / 0.6226 GB, free: 8.863 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.004034/0.5226, allocations: 2.586 MB / 0.6252 GB, free: 6.109 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.5228, allocations: 150.5 kB / 0.6253 GB, free: 5.953 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.265e-05/0.5229, allocations: 48.84 kB / 0.6254 GB, free: 5.902 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002591/0.5232, allocations: 125.1 kB / 0.6255 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.5232, allocations: 38.56 kB / 0.6255 GB, free: 5.715 MB / 446.1 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.5232, allocations: 0 / 0.6255 GB, free: 5.715 MB / 446.1 MB Notification: Performance of matching and sorting (n=13): time 0.0005949/0.5238, allocations: 284.1 kB / 0.6258 GB, free: 5.43 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.5239, allocations: 55.41 kB / 0.6258 GB, free: 5.363 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002062/0.526, allocations: 1.927 MB / 0.6277 GB, free: 3.418 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.526, allocations: 33.7 kB / 0.6278 GB, free: 3.379 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004269/0.5264, allocations: 0.5867 MB / 0.6283 GB, free: 2.789 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.636e-05/0.5265, allocations: 51.3 kB / 0.6284 GB, free: 2.738 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/0.5266, allocations: 85.59 kB / 0.6285 GB, free: 2.648 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.713e-05/0.5267, allocations: 318 kB / 0.6288 GB, free: 2.332 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002019/0.5269, allocations: 130.1 kB / 0.6289 GB, free: 2.203 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.5272, allocations: 243.4 kB / 0.6291 GB, free: 1.902 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003789/0.5276, allocations: 330.9 kB / 0.6294 GB, free: 1.516 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.5276, allocations: 4 kB / 0.6294 GB, free: 1.512 MB / 446.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007486/0.5283, allocations: 496.8 kB / 0.6299 GB, free: 1.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.5284, allocations: 8.562 kB / 0.6299 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.5284, allocations: 10.89 kB / 0.6299 GB, free: 1.004 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.153e-05/0.5284, allocations: 15.92 kB / 0.6299 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005125/0.5289, allocations: 107.8 kB / 0.6301 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006737/0.5296, allocations: 1.19 MB / 0.6312 GB, free: 15.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004952/0.5301, allocations: 79.33 kB / 0.6313 GB, free: 15.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/0.5302, allocations: 27.98 kB / 0.6313 GB, free: 15.54 MB / 462.1 MB 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.0004743/0.5307, allocations: 373.5 kB / 0.6317 GB, free: 15.17 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.5308, allocations: 122.5 kB / 0.6318 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004307/0.5313, allocations: 276.9 kB / 0.6321 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.5313, allocations: 0 / 0.6321 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5313, allocations: 0 / 0.6321 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.5313, allocations: 7.938 kB / 0.6321 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008707/0.5322, allocations: 0.68 MB / 0.6327 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.5322, allocations: 0 / 0.6327 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003059/0.5325, allocations: 52.64 kB / 0.6328 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.119e-06/0.5325, allocations: 0 / 0.6328 GB, free: 13.97 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.649e-05/0.5326, allocations: 14.06 kB / 0.6328 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005734/0.5331, allocations: 1.191 MB / 0.634 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5332, allocations: 0 / 0.634 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005023/0.5337, allocations: 405 kB / 0.6343 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003359/0.534, allocations: 247.7 kB / 0.6346 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.5341, allocations: 0 / 0.6346 GB, free: 12.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004433/0.5346, allocations: 28.12 kB / 0.6346 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.774e-05/0.5346, allocations: 11.92 kB / 0.6346 GB, free: 12.01 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.5347, allocations: 15.98 kB / 0.6346 GB, free: 11.99 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001736/0.5364, allocations: 1.37 MB / 0.636 GB, free: 10.62 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5364, allocations: 0 / 0.636 GB, free: 10.62 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0008234/0.5372, allocations: 243.8 kB / 0.6362 GB, free: 10.38 MB / 462.1 MB 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.002004/0.5392, allocations: 1.38 MB / 0.6375 GB, free: 8.984 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0005852/0.5398, allocations: 244.8 kB / 0.6378 GB, free: 8.746 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.5399, allocations: 4.125 kB / 0.6378 GB, free: 8.742 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000183/0.5401, allocations: 79.83 kB / 0.6379 GB, free: 8.664 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/0.5415, allocations: 360.8 kB / 0.6382 GB, free: 8.309 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.5554, allocations: 10.69 MB / 0.6486 GB, free: 13.37 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006668/0.5562, allocations: 1.106 MB / 0.6497 GB, free: 12.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000626/0.5568, allocations: 212.6 kB / 0.6499 GB, free: 12.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004592/0.5573, allocations: 415.2 kB / 0.6503 GB, free: 11.62 MB / 478.1 MB Notification: Performance of SimCode: time 1.001e-06/0.5573, allocations: 4 kB / 0.6503 GB, free: 11.61 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05704/0.6143, allocations: 29.24 MB / 0.6789 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.82, allocations: 0 / 0.6789 GB, free: 14.29 MB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_GasComponents_TestCompressorConstSpeed_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_GasComponents_TestCompressorConstSpeed.fmu > ThermoPower_ThermoPower.Test.GasComponents.TestCompressorConstSpeed.pipe 2>&1)