Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Thermal.TestLongRod.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Thermal.TestLongRod,fileNamePrefix="HanserModelica_HanserModelica_Thermal_TestLongRod",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Thermal.TestLongRod,fileNamePrefix="HanserModelica_HanserModelica_Thermal_TestLongRod",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.006849/0.006849, allocations: 97.62 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 222.9 MB / 239.4 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001444/0.001444, allocations: 196.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03604/0.03604, allocations: 8.798 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 72.08 kB / 463.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.116, allocations: 51.56 MB / 0.5029 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.TestLongRod): time 0.003581/0.1197, allocations: 1.999 MB / 0.5048 GB, free: 8.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005186/0.1202, allocations: 171.4 kB / 0.505 GB, free: 7.855 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001471/0.1204, allocations: 4 kB / 0.505 GB, free: 7.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.1206, allocations: 19.78 kB / 0.505 GB, free: 7.832 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.1209, allocations: 79.45 kB / 0.5051 GB, free: 7.754 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.1211, allocations: 35.97 kB / 0.5051 GB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000568/0.1217, allocations: 0.4901 MB / 0.5056 GB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004691/0.1222, allocations: 293.6 kB / 0.5059 GB, free: 6.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002731/0.1224, allocations: 183.4 kB / 0.5061 GB, free: 6.758 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003167/0.1228, allocations: 183.4 kB / 0.5063 GB, free: 6.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.762e-05/0.1229, allocations: 48 kB / 0.5063 GB, free: 6.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.036e-05/0.123, allocations: 48 kB / 0.5063 GB, free: 6.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1231, allocations: 103.7 kB / 0.5064 GB, free: 6.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002821/0.1234, allocations: 211.1 kB / 0.5066 GB, free: 6.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005992/0.124, allocations: 0.5452 MB / 0.5072 GB, free: 5.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.124, allocations: 4 kB / 0.5072 GB, free: 5.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.124, allocations: 0 / 0.5072 GB, free: 5.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.124, allocations: 0 / 0.5072 GB, free: 5.625 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001379/0.1254, allocations: 0.6547 MB / 0.5078 GB, free: 4.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.1255, allocations: 12.03 kB / 0.5078 GB, free: 4.902 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.592e-05/0.1256, allocations: 66.72 kB / 0.5079 GB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.226e-05/0.1257, allocations: 36.75 kB / 0.5079 GB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000422/0.1261, allocations: 307.8 kB / 0.5082 GB, free: 4.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.1261, allocations: 25.02 kB / 0.5082 GB, free: 4.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.592e-05/0.1262, allocations: 28.38 kB / 0.5083 GB, free: 4.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007085/0.1269, allocations: 386.5 kB / 0.5086 GB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.1269, allocations: 3.938 kB / 0.5086 GB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.127, allocations: 16 kB / 0.5087 GB, free: 4 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.562e-05/0.127, allocations: 20.59 kB / 0.5087 GB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006237/0.1276, allocations: 362.3 kB / 0.509 GB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.1295, allocations: 1.413 MB / 0.5104 GB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006736/0.1302, allocations: 390.4 kB / 0.5108 GB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.1305, allocations: 199.3 kB / 0.511 GB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.1305, allocations: 4 kB / 0.511 GB, free: 1.496 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.1305, allocations: 30.56 kB / 0.511 GB, free: 1.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.864e-06/0.1305, allocations: 0 / 0.511 GB, free: 1.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001592/0.1321, allocations: 0.8568 MB / 0.5118 GB, free: 0.5312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.69e-05/0.1322, allocations: 59.34 kB / 0.5119 GB, free: 472 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.1324, allocations: 215.5 kB / 0.5121 GB, free: 240 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.1324, allocations: 33.64 kB / 0.5121 GB, free: 200 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.61e-05/0.1325, allocations: 168.6 kB / 0.5123 GB, free: 28 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.891e-05/0.1327, allocations: 91.69 kB / 0.5124 GB, free: 15.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.619e-05/0.1327, allocations: 45.64 kB / 0.5124 GB, free: 15.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1328, allocations: 326.8 kB / 0.5127 GB, free: 15.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.1331, allocations: 119.9 kB / 0.5129 GB, free: 15.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001827/0.1332, allocations: 119.9 kB / 0.513 GB, free: 15.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003763/0.1336, allocations: 272.7 kB / 0.5132 GB, free: 15.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1336, allocations: 0 / 0.5132 GB, free: 15.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006983/0.1343, allocations: 440.1 kB / 0.5136 GB, free: 14.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.1344, allocations: 4 kB / 0.5136 GB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1344, allocations: 0 / 0.5136 GB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003982/0.1348, allocations: 142.4 kB / 0.5138 GB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.135, allocations: 39.97 kB / 0.5138 GB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004065/0.139, allocations: 5.16 MB / 0.5189 GB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.1392, allocations: 27.91 kB / 0.5189 GB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.627e-05/0.1392, allocations: 7.984 kB / 0.5189 GB, free: 8.805 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002055/0.1395, allocations: 205.7 kB / 0.5191 GB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.1395, allocations: 23.8 kB / 0.5191 GB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.36e-05/0.1396, allocations: 37.86 kB / 0.5192 GB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1396, allocations: 0 / 0.5192 GB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1396, allocations: 4 kB / 0.5192 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1396, allocations: 0 / 0.5192 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000466/0.1401, allocations: 421.3 kB / 0.5196 GB, free: 8.066 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.1401, allocations: 3.938 kB / 0.5196 GB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002048/0.1403, allocations: 43.97 kB / 0.5196 GB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003351/0.1407, allocations: 138.4 kB / 0.5197 GB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.563e-05/0.1407, allocations: 4 kB / 0.5197 GB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00417/0.1449, allocations: 5.164 MB / 0.5248 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.1449, allocations: 0 / 0.5248 GB, free: 2.289 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001088/0.146, allocations: 0.6692 MB / 0.5254 GB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.967e-05/0.1461, allocations: 105 kB / 0.5255 GB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.1462, allocations: 11.94 kB / 0.5255 GB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.1463, allocations: 11.98 kB / 0.5256 GB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.1464, allocations: 19.97 kB / 0.5256 GB, free: 1.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.437e-05/0.1464, allocations: 8 kB / 0.5256 GB, free: 1.422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001652/0.1466, allocations: 161.2 kB / 0.5257 GB, free: 1.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1466, allocations: 0 / 0.5257 GB, free: 1.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006429/0.1472, allocations: 107.8 kB / 0.5258 GB, free: 1.16 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (longRod.shortRod[1].heatCapacitor.T,longRod.shortRod[2].heatCapacitor.T,longRod.shortRod[3].heatCapacitor.T) * 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 (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,2,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1964/0.3437, allocations: 1.198 MB / 0.527 GB, free: 23.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009564/0.3447, allocations: 0.6547 MB / 0.5277 GB, free: 23.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3447, allocations: 0.5312 kB / 0.5277 GB, free: 23.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004796/0.3452, allocations: 0.5249 MB / 0.5282 GB, free: 23.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.3456, allocations: 48.89 kB / 0.5282 GB, free: 23.29 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00391/0.3495, allocations: 3.488 MB / 0.5316 GB, free: 21.89 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.3499, allocations: 0.8481 MB / 0.5324 GB, free: 21.19 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001459/0.35, allocations: 55.7 kB / 0.5325 GB, free: 21.18 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001098/0.3501, allocations: 81.19 kB / 0.5326 GB, free: 21.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.462e-06/0.3501, allocations: 0 / 0.5326 GB, free: 21.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03431/0.3845, allocations: 7.277 MB / 0.5397 GB, free: 20.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.569/9.954, allocations: 8.844 kB / 0.5397 GB, free: 20.39 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Thermal.TestLongRod.pipe ; mkfifo HanserModelica_HanserModelica.Thermal.TestLongRod.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Thermal.TestLongRod.pipe >> ../files/HanserModelica_HanserModelica.Thermal.TestLongRod.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Thermal.TestLongRod_res.csv --start-time 0 --stop-time 400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 HanserModelica_HanserModelica_Thermal_TestLongRod.fmu > HanserModelica_HanserModelica.Thermal.TestLongRod.pipe 2>&1)