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.001612/0.001612, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 239.3 MB, free: 4.609 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.001359/0.001359, allocations: 188.5 kB / 289.6 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03406/0.03406, allocations: 8.787 MB / 348.5 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001603, allocations: 79.11 kB / 411.2 MB, free: 42.08 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1034, allocations: 51.56 MB / 462.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Thermal.TestLongRod): time 0.003178/0.1067, allocations: 1.989 MB / 464.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000373/0.1071, allocations: 171.4 kB / 464.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.911e-05/0.1071, allocations: 4 kB / 464.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001275/0.1073, allocations: 23.78 kB / 464.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001873/0.1075, allocations: 75.45 kB / 465 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001418/0.1076, allocations: 35.97 kB / 465 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004257/0.1081, allocations: 493.9 kB / 465.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003947/0.1085, allocations: 293.7 kB / 465.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.1087, allocations: 187.4 kB / 466 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003197/0.109, allocations: 179.4 kB / 466.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.161e-05/0.1091, allocations: 48 kB / 466.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.802e-05/0.1092, allocations: 48 kB / 466.3 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.1093, allocations: 103.7 kB / 466.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002057/0.1095, allocations: 215.1 kB / 466.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004437/0.11, allocations: 0.5456 MB / 467.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.11, allocations: 4 kB / 467.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.11, allocations: 0 / 467.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.11, allocations: 0 / 467.1 MB, free: 9.895 MB / 302.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.001126/0.1111, allocations: 0.642 MB / 467.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1112, allocations: 12.03 kB / 467.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.179e-05/0.1113, allocations: 70.72 kB / 467.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.941e-05/0.1114, allocations: 36.56 kB / 467.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003546/0.1117, allocations: 307.8 kB / 468.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.1118, allocations: 21.03 kB / 468.2 MB, free: 8.719 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.582e-05/0.1118, allocations: 36.28 kB / 468.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006107/0.1124, allocations: 386.5 kB / 468.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.1125, allocations: 7.938 kB / 468.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.016e-05/0.1125, allocations: 8 kB / 468.6 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/0.1125, allocations: 16.66 kB / 468.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005786/0.1131, allocations: 362.4 kB / 469 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.1148, allocations: 1.421 MB / 470.4 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006402/0.1155, allocations: 386.4 kB / 470.8 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002678/0.1157, allocations: 200.6 kB / 471 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.1158, allocations: 4 kB / 471 MB, free: 5.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1158, allocations: 30.56 kB / 471 MB, free: 5.738 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.1158, allocations: 3.938 kB / 471 MB, free: 5.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001599/0.1174, allocations: 0.8622 MB / 471.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.1175, allocations: 55.34 kB / 471.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.1177, allocations: 215.5 kB / 472.2 MB, free: 4.516 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.1177, allocations: 29.7 kB / 472.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.55e-05/0.1178, allocations: 172.3 kB / 472.4 MB, free: 4.309 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.697e-05/0.1179, allocations: 87.09 kB / 472.4 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.031e-05/0.118, allocations: 41.7 kB / 472.5 MB, free: 4.176 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.1181, allocations: 330.8 kB / 472.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.1183, allocations: 115.9 kB / 472.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.1185, allocations: 117.5 kB / 473 MB, free: 3.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004698/0.119, allocations: 280.9 kB / 473.3 MB, free: 3.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.119, allocations: 0 / 473.3 MB, free: 3.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008193/0.1199, allocations: 435.7 kB / 473.7 MB, free: 2.898 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.1199, allocations: 4 kB / 473.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1199, allocations: 7.922 kB / 473.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004917/0.1204, allocations: 134.4 kB / 473.9 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.1206, allocations: 39.97 kB / 473.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004609/0.1252, allocations: 5.164 MB / 479.1 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.1254, allocations: 19.86 kB / 479.1 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.684e-05/0.1254, allocations: 11.98 kB / 479.1 MB, free: 13.09 MB / 318.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.0002432/0.1257, allocations: 205.6 kB / 479.3 MB, free: 12.88 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.87e-05/0.1257, allocations: 31.7 kB / 479.3 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.794e-05/0.1258, allocations: 33.88 kB / 479.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1258, allocations: 0 / 479.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.1258, allocations: 4 kB / 479.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.1258, allocations: 0 / 479.4 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005883/0.1264, allocations: 421.3 kB / 479.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1265, allocations: 0 / 479.8 MB, free: 12.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002002/0.1267, allocations: 39.97 kB / 479.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003432/0.127, allocations: 142.4 kB / 480 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.127, allocations: 4 kB / 480 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004247/0.1313, allocations: 5.168 MB / 485.1 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1313, allocations: 0 / 485.1 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009884/0.1323, allocations: 0.6691 MB / 485.8 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.793e-05/0.1324, allocations: 100.8 kB / 485.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.1324, allocations: 16 kB / 485.9 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.1326, allocations: 12.03 kB / 485.9 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.045e-05/0.1327, allocations: 19.97 kB / 486 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.1327, allocations: 4 kB / 486 MB, free: 5.711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001484/0.1328, allocations: 165.2 kB / 486.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1328, allocations: 0 / 486.1 MB, free: 5.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005898/0.1334, allocations: 107.7 kB / 486.2 MB, free: 5.445 MB / 318.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.001306/0.1347, allocations: 1.214 MB / 487.4 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000988/0.1357, allocations: 0.6717 MB / 488.1 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1358, allocations: 0 / 488.1 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005644/0.1363, allocations: 0.5272 MB / 488.6 MB, free: 2.922 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.1367, allocations: 42.11 kB / 488.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004557/0.1413, allocations: 3.499 MB / 492.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004503/0.1417, allocations: 0.8536 MB / 493 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001437/0.1419, allocations: 53.91 kB / 493.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.142, allocations: 75.59 kB / 493.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.142, allocations: 7.875 kB / 493.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.1766, allocations: 7.116 MB / 0.4886 GB, free: 7.246 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.333/9.509, allocations: 4.828 kB / 0.4886 GB, free: 7.242 MB / 334.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)