Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/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 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(EHPTlib.MapBased.TestingModels.TestOneFlange,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestOneFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlange,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestOneFlange",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.006645/0.006645, allocations: 100.3 kB / 15.73 MB, free: 6.062 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.001613/0.001613, allocations: 189 kB / 16.67 MB, free: 5.969 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.332/1.332, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.0409/0.0409, allocations: 8.049 MB / 298.6 MB, free: 6.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 63.91 kB / 412.6 MB, free: 22.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08366/0.08487, allocations: 51.19 MB / 463.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange): time 0.005636/0.09055, allocations: 4.106 MB / 467.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002458/0.09305, allocations: 1.418 MB / 469.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004184/0.09349, allocations: 12 kB / 469.3 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004837/0.09401, allocations: 150.8 kB / 469.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007163/0.09474, allocations: 206.5 kB / 469.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007744/0.09553, allocations: 386.3 kB / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009417/0.09648, allocations: 0.8373 MB / 470.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006058/0.0971, allocations: 450.5 kB / 471.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000409/0.09752, allocations: 318.9 kB / 471.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.09798, allocations: 350.5 kB / 472 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.09813, allocations: 96 kB / 472 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000215/0.09835, allocations: 124 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002146/0.09857, allocations: 203.4 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004054/0.09899, allocations: 402.1 kB / 472.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.1001, allocations: 1.031 MB / 473.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1001, allocations: 0 / 473.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1001, allocations: 0 / 473.8 MB, free: 9.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.888e-05/0.1002, allocations: 4 kB / 473.8 MB, free: 9.48 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.001939/0.1021, allocations: 1.129 MB / 474.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1022, allocations: 8.031 kB / 474.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.1023, allocations: 106.6 kB / 475 MB, free: 8.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001415/0.1025, allocations: 84.42 kB / 475.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007238/0.1032, allocations: 0.5092 MB / 475.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.431e-05/0.1032, allocations: 49.31 kB / 475.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.741e-05/0.1033, allocations: 64 kB / 475.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.1046, allocations: 0.6488 MB / 476.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.1046, allocations: 4 kB / 476.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.882e-05/0.1047, allocations: 24 kB / 476.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.1047, allocations: 16 kB / 476.4 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1058, allocations: 480.9 kB / 476.9 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003476/0.1093, allocations: 2.502 MB / 479.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.1104, allocations: 426.5 kB / 479.8 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004244/0.1108, allocations: 172.9 kB / 480 MB, free: 2.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.1108, allocations: 4.234 kB / 480 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006008/0.1115, allocations: 261.6 kB / 480.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.254e-06/0.1115, allocations: 0 / 480.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001766/0.1132, allocations: 0.6858 MB / 480.9 MB, free: 1.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.851e-05/0.1133, allocations: 140.5 kB / 481.1 MB, free: 1.816 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007033/0.114, allocations: 0.5567 MB / 481.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.252e-05/0.1141, allocations: 33.7 kB / 481.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.1144, allocations: 348 kB / 482 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.1145, allocations: 115.1 kB / 482.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001303/0.1146, allocations: 77.64 kB / 482.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1148, allocations: 362.8 kB / 482.5 MB, free: 316 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004262/0.1152, allocations: 157.2 kB / 482.7 MB, free: 152 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000494/0.1157, allocations: 261.1 kB / 483 MB, free: 15.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000932/0.1167, allocations: 0.5309 MB / 483.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1167, allocations: 4 kB / 483.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001237/0.1179, allocations: 0.5886 MB / 484.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.179e-05/0.118, allocations: 89.05 kB / 484.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.118, allocations: 4 kB / 484.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.1182, allocations: 24.84 kB / 484.2 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.1185, allocations: 87.81 kB / 484.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001007/0.1195, allocations: 1.379 MB / 485.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/0.1201, allocations: 83.73 kB / 485.7 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.948e-05/0.1201, allocations: 23.92 kB / 485.8 MB, free: 12.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005842/0.1207, allocations: 312.6 kB / 486.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004273/0.1211, allocations: 246.8 kB / 486.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008166/0.122, allocations: 0.5187 MB / 486.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.495e-06/0.122, allocations: 0 / 486.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001081/0.1231, allocations: 0.5651 MB / 487.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.47e-05/0.1231, allocations: 93.11 kB / 487.5 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.1231, allocations: 3.984 kB / 487.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.427e-05/0.1232, allocations: 25.23 kB / 487.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003061/0.1236, allocations: 71.89 kB / 487.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009415/0.1245, allocations: 1.386 MB / 489 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004343/0.125, allocations: 67.73 kB / 489 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.458e-05/0.125, allocations: 16 kB / 489 MB, free: 9.191 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (oneFlange.limTau.state,tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,$whenCondition1,oneFlange.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002344/0.1252, allocations: 279.5 kB / 489.3 MB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.394e-05/0.1253, allocations: 55.67 kB / 489.4 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001137/0.1265, allocations: 488 kB / 489.9 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.1265, allocations: 8 kB / 489.9 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.1265, allocations: 3.938 kB / 489.9 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.1265, allocations: 4 kB / 489.9 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001811/0.1283, allocations: 1.132 MB / 491 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1284, allocations: 4 kB / 491 MB, free: 7.121 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000322/0.1287, allocations: 55.89 kB / 491.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.46e-05/0.1288, allocations: 20.86 kB / 491.1 MB, free: 7.043 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.1288, allocations: 15.92 kB / 491.1 MB, free: 7.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009379/0.1298, allocations: 1.382 MB / 492.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1298, allocations: 0 / 492.5 MB, free: 5.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001574/0.1314, allocations: 0.7705 MB / 493.2 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.1315, allocations: 132.7 kB / 493.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.994e-05/0.1316, allocations: 16 kB / 493.4 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003989/0.132, allocations: 43.95 kB / 493.4 MB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.1321, allocations: 35.89 kB / 493.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.1322, allocations: 8 kB / 493.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000454/0.1326, allocations: 406.8 kB / 493.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1326, allocations: 0 / 493.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008158/0.1334, allocations: 271.2 kB / 494.1 MB, free: 3.789 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (inertia.w,loadTorque.phi,oneFlange.constPDC.integrator1.y) * Number of discrete variables: 4 ($whenCondition1,tauRef.T_start,tauRef.count,oneFlange.limTau.state) * Number of discrete states: 2 (tauRef.count,oneFlange.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002523/0.136, allocations: 1.586 MB / 495.7 MB, free: 2.297 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.138, allocations: 1.166 MB / 496.9 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.138, allocations: 0 / 496.9 MB, free: 1.031 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006379/0.1387, allocations: 421.9 kB / 497.3 MB, free: 0.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006306/0.1393, allocations: 97.69 kB / 497.4 MB, free: 500 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008178/0.1475, allocations: 5.335 MB / 0.491 GB, free: 10.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004804/0.148, allocations: 0.8855 MB / 0.4918 GB, free: 10.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002722/0.1483, allocations: 67.34 kB / 0.4919 GB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.1486, allocations: 207.4 kB / 0.4921 GB, free: 9.789 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.1486, allocations: 0 / 0.4921 GB, free: 9.789 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2196/0.3682, allocations: 12.76 MB / 0.5045 GB, free: 47.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.49, allocations: 12.56 kB / 0.5045 GB, free: 47.11 MB / 382.1 MB (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.sim & python3 -m fmpy simulate --output-file EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 EHPTlib_EHPTlib_MapBased_TestingModels_TestOneFlange.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe 2>&1)