Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.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.TestTwoFlange,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange",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.007524/0.007525, allocations: 100.9 kB / 15.73 MB, free: 6.051 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.001764/0.001764, allocations: 196.7 kB / 16.68 MB, free: 5.965 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.041/0.041, allocations: 8.043 MB / 298.6 MB, free: 6.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 67.91 kB / 412.6 MB, free: 22.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09678/0.09799, allocations: 51.19 MB / 463.8 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.006088/0.1041, allocations: 4.288 MB / 468.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.107, allocations: 1.461 MB / 469.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004782/0.1075, allocations: 12 kB / 469.5 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004823/0.108, allocations: 158.8 kB / 469.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006273/0.1087, allocations: 218.4 kB / 469.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007941/0.1095, allocations: 394.6 kB / 470.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009214/0.1104, allocations: 0.9 MB / 471.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000636/0.1111, allocations: 467.8 kB / 471.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004108/0.1115, allocations: 346.8 kB / 472 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004432/0.112, allocations: 378.4 kB / 472.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001281/0.1121, allocations: 100 kB / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002226/0.1123, allocations: 139.9 kB / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.1126, allocations: 207.4 kB / 472.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004096/0.113, allocations: 433.9 kB / 473.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.1141, allocations: 1.091 MB / 474.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1142, allocations: 0 / 474.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1142, allocations: 0 / 474.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.1142, allocations: 0 / 474.3 MB, free: 8.949 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002044/0.1162, allocations: 1.159 MB / 475.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1163, allocations: 15.95 kB / 475.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001273/0.1164, allocations: 110.7 kB / 475.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.1166, allocations: 87.91 kB / 475.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007516/0.1173, allocations: 0.5243 MB / 476.2 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.664e-05/0.1174, allocations: 54 kB / 476.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.1175, allocations: 68 kB / 476.3 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.1188, allocations: 0.7035 MB / 477 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.1188, allocations: 3.906 kB / 477 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.27e-05/0.1189, allocations: 36 kB / 477.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.726e-05/0.1189, allocations: 20 kB / 477.1 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.1201, allocations: 0.5015 MB / 477.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003684/0.1238, allocations: 2.533 MB / 480.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009853/0.1248, allocations: 447.4 kB / 480.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004095/0.1252, allocations: 176.8 kB / 480.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.679e-05/0.1253, allocations: 4 kB / 480.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005663/0.1258, allocations: 263.4 kB / 481 MB, free: 1.957 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.934e-06/0.1259, allocations: 96 / 481 MB, free: 1.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001638/0.1275, allocations: 0.7158 MB / 481.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/0.1276, allocations: 136.5 kB / 481.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00069/0.1283, allocations: 0.58 MB / 482.4 MB, free: 456 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.22e-05/0.1283, allocations: 37.7 kB / 482.4 MB, free: 412 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/0.1286, allocations: 356 kB / 482.8 MB, free: 52 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.1287, allocations: 110.4 kB / 482.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001378/0.1289, allocations: 78.06 kB / 483 MB, free: 15.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1291, allocations: 366.7 kB / 483.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.1295, allocations: 166.3 kB / 483.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.13, allocations: 259.2 kB / 483.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009347/0.1309, allocations: 0.5542 MB / 484.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.1309, allocations: 0 / 484.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001249/0.1322, allocations: 0.5999 MB / 484.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.884e-05/0.1323, allocations: 89.09 kB / 485 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.1323, allocations: 7.938 kB / 485 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001835/0.1325, allocations: 28.84 kB / 485 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003374/0.1329, allocations: 88.17 kB / 485.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.1339, allocations: 1.391 MB / 486.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004332/0.1344, allocations: 75.48 kB / 486.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.1344, allocations: 16 kB / 486.6 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005583/0.135, allocations: 324.8 kB / 486.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004269/0.1354, allocations: 247.4 kB / 487.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008244/0.1362, allocations: 0.5226 MB / 487.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.924e-06/0.1363, allocations: 0 / 487.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.001081/0.1373, allocations: 0.5843 MB / 488.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.052e-05/0.1374, allocations: 101.1 kB / 488.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.577e-06/0.1374, allocations: 0 / 488.4 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.951e-05/0.1375, allocations: 28.84 kB / 488.4 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.1378, allocations: 71.89 kB / 488.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009801/0.1388, allocations: 1.394 MB / 489.8 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.1393, allocations: 63.88 kB / 489.9 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.584e-05/0.1393, allocations: 19.98 kB / 489.9 MB, free: 8.281 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 (tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,twoFlanges.limTau.state,$whenCondition1,twoFlanges.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 41 * 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.0002302/0.1395, allocations: 267.5 kB / 490.2 MB, free: 8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-05/0.1396, allocations: 55.34 kB / 490.2 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.1408, allocations: 0.5142 MB / 490.8 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.1408, allocations: 4 kB / 490.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1408, allocations: 0 / 490.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1408, allocations: 0 / 490.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001973/0.1428, allocations: 1.191 MB / 492 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1428, allocations: 0 / 492 MB, free: 6.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003103/0.1431, allocations: 63.89 kB / 492 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.248e-05/0.1432, allocations: 20.84 kB / 492 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.326e-05/0.1433, allocations: 11.94 kB / 492 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009936/0.1443, allocations: 1.387 MB / 493.4 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1443, allocations: 0 / 493.4 MB, free: 4.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.1458, allocations: 0.7967 MB / 494.2 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.146, allocations: 136.4 kB / 494.4 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.022e-05/0.1461, allocations: 11.98 kB / 494.4 MB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003843/0.1465, allocations: 43.95 kB / 494.4 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.1466, allocations: 35.91 kB / 494.5 MB, free: 3.441 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.1466, allocations: 15.98 kB / 494.5 MB, free: 3.426 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000522/0.1472, allocations: 418.8 kB / 494.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1472, allocations: 0 / 494.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008323/0.148, allocations: 286.8 kB / 495.2 MB, free: 2.738 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,twoFlanges.constPDC.integrator1.y) * Number of discrete variables: 4 ($whenCondition1,twoFlanges.limTau.state,tauRef.T_start,tauRef.count) * Number of discrete states: 2 (tauRef.count,twoFlanges.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 25 * 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.002626/0.1506, allocations: 1.594 MB / 496.8 MB, free: 1.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002042/0.1527, allocations: 1.193 MB / 497.9 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1527, allocations: 0.8125 kB / 497.9 MB, free: 15.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006476/0.1534, allocations: 437.2 kB / 498.4 MB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005655/0.1539, allocations: 89.7 kB / 498.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008381/0.1623, allocations: 5.455 MB / 0.4921 GB, free: 9.754 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005118/0.1629, allocations: 0.9134 MB / 0.493 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002993/0.1632, allocations: 68.14 kB / 0.4931 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.1635, allocations: 227.4 kB / 0.4933 GB, free: 8.52 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1635, allocations: 3.938 kB / 0.4933 GB, free: 8.516 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2436/0.4071, allocations: 13.18 MB / 0.5062 GB, free: 45.54 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/10.81, allocations: 18.12 kB / 0.5062 GB, free: 45.53 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)