Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.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 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-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.TestTwoFlange2,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange2,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2",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.008142/0.008142, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.001906/0.001906, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.761/1.761, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.04045/0.04045, allocations: 8.418 MB / 298.9 MB, free: 6.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00189/0.00189, allocations: 59.89 kB / 413.3 MB, free: 22.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09604, allocations: 51.36 MB / 464.7 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange2): time 0.006161/0.1022, allocations: 4.438 MB / 469.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003716/0.106, allocations: 2.11 MB / 471.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004037/0.1064, allocations: 15.94 kB / 471.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004483/0.1069, allocations: 158.7 kB / 471.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00059/0.1075, allocations: 234.3 kB / 471.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008099/0.1083, allocations: 425.8 kB / 472 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001154/0.1095, allocations: 0.9586 MB / 473 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006886/0.1102, allocations: 0.5004 MB / 473.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004926/0.1107, allocations: 378.7 kB / 473.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005413/0.1112, allocations: 410.2 kB / 474.3 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.1114, allocations: 116 kB / 474.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002697/0.1117, allocations: 164 kB / 474.5 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/0.1119, allocations: 243.3 kB / 474.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004681/0.1124, allocations: 477.7 kB / 475.2 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.1138, allocations: 1.238 MB / 476.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1139, allocations: 4 kB / 476.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1139, allocations: 0 / 476.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.659e-05/0.1139, allocations: 3.938 kB / 476.5 MB, free: 6.98 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.002094/0.116, allocations: 1.267 MB / 477.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.116, allocations: 11.89 kB / 477.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001458/0.1162, allocations: 118.7 kB / 477.9 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001584/0.1164, allocations: 104.3 kB / 478 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008713/0.1172, allocations: 0.5797 MB / 478.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.792e-05/0.1173, allocations: 58.38 kB / 478.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.1175, allocations: 79.94 kB / 478.7 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/0.1189, allocations: 0.7409 MB / 479.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.1189, allocations: 0 / 479.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.854e-05/0.119, allocations: 35.94 kB / 479.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.748e-05/0.119, allocations: 16 kB / 479.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.1203, allocations: 0.5309 MB / 480 MB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004123/0.1244, allocations: 2.727 MB / 482.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.1256, allocations: 460.5 kB / 483.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000462/0.1261, allocations: 185 kB / 483.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1261, allocations: 0 / 483.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006466/0.1268, allocations: 274.6 kB / 483.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of pre-optimization done (n=35): time 3.517e-06/0.1268, allocations: 3.984 kB / 483.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.001897/0.1287, allocations: 0.7427 MB / 484.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.1288, allocations: 166.5 kB / 484.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009977/0.1298, allocations: 0.6826 MB / 485.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.398e-05/0.1299, allocations: 37.7 kB / 485.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003469/0.1302, allocations: 396.6 kB / 485.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.1304, allocations: 123 kB / 485.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001646/0.1306, allocations: 98.2 kB / 485.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.1308, allocations: 378.7 kB / 486.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004852/0.1313, allocations: 187 kB / 486.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.1318, allocations: 308.1 kB / 486.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.133, allocations: 0.5998 MB / 487.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.133, allocations: 0 / 487.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001512/0.1345, allocations: 0.6687 MB / 488 MB, free: 10.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.932e-05/0.1346, allocations: 101 kB / 488.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1346, allocations: 0 / 488.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.1348, allocations: 33.28 kB / 488.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003938/0.1352, allocations: 103.8 kB / 488.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001242/0.1364, allocations: 1.38 MB / 489.6 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005171/0.137, allocations: 95.41 kB / 489.7 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.48e-05/0.137, allocations: 23.98 kB / 489.7 MB, free: 8.992 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007476/0.1378, allocations: 365.2 kB / 490.1 MB, free: 8.633 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005283/0.1383, allocations: 292.1 kB / 490.4 MB, free: 8.297 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009922/0.1393, allocations: 0.5746 MB / 490.9 MB, free: 7.645 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.148e-06/0.1393, allocations: 4 kB / 491 MB, free: 7.641 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001322/0.1407, allocations: 0.6544 MB / 491.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.902e-05/0.1407, allocations: 89.09 kB / 491.7 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1408, allocations: 4 kB / 491.7 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001078/0.1409, allocations: 29.3 kB / 491.7 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003534/0.1412, allocations: 95.81 kB / 491.8 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.1424, allocations: 1.387 MB / 493.2 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004907/0.1429, allocations: 71.69 kB / 493.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.986e-05/0.1429, allocations: 20 kB / 493.3 MB, free: 5.105 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (55): * Single equations (assignments): 51 * 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.0002564/0.1432, allocations: 274.4 kB / 493.6 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.1433, allocations: 71.55 kB / 493.6 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001267/0.1446, allocations: 0.5227 MB / 494.2 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.1446, allocations: 11.98 kB / 494.2 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.706e-06/0.1446, allocations: 0 / 494.2 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-06/0.1446, allocations: 0 / 494.2 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002246/0.1469, allocations: 1.291 MB / 495.5 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.1469, allocations: 0 / 495.5 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.1472, allocations: 63.89 kB / 495.5 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.896e-05/0.1473, allocations: 20.84 kB / 495.5 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.1474, allocations: 12 kB / 495.6 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.1485, allocations: 1.387 MB / 496.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1485, allocations: 0 / 496.9 MB, free: 1.207 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.1503, allocations: 0.8289 MB / 497.8 MB, free: 352 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.1505, allocations: 152.7 kB / 497.9 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.334e-05/0.1506, allocations: 8 kB / 497.9 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003929/0.151, allocations: 47.94 kB / 498 MB, free: 124 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.1511, allocations: 27.97 kB / 498 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.281e-05/0.1511, allocations: 12 kB / 498 MB, free: 84 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006639/0.1518, allocations: 498.9 kB / 498.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1518, allocations: 3.938 kB / 498.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009238/0.1527, allocations: 331 kB / 498.8 MB, free: 15.27 MB / 382.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 (32): * Single equations (assignments): 27 * 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.003364/0.1561, allocations: 1.674 MB / 0.4888 GB, free: 13.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00229/0.1584, allocations: 1.262 MB / 0.49 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.1584, allocations: 8.047 kB / 0.49 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007248/0.1592, allocations: 449.1 kB / 0.4904 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006451/0.1598, allocations: 105.7 kB / 0.4905 GB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009614/0.1695, allocations: 6.175 MB / 0.4966 GB, free: 5.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000615/0.1701, allocations: 0.933 MB / 0.4975 GB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000285/0.1704, allocations: 68.38 kB / 0.4975 GB, free: 4.355 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003775/0.1708, allocations: 271.3 kB / 0.4978 GB, free: 4.09 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1708, allocations: 0 / 0.4978 GB, free: 4.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2544/0.4252, allocations: 14.79 MB / 0.5123 GB, free: 43.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.44, allocations: 7.234 kB / 0.5123 GB, free: 43.8 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2_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_TestTwoFlange2.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe 2>&1)