Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.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.TestTwoFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1",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.005251/0.005251, allocations: 100.8 kB / 15.73 MB, free: 6.055 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.0014/0.0014, allocations: 189.5 kB / 16.67 MB, free: 5.973 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.373/1.373, 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 3.0.0-main/package.mo): time 0.04479/0.04479, allocations: 8.411 MB / 298.9 MB, free: 6.406 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 59.91 kB / 413.3 MB, free: 22.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09961/0.1016, allocations: 51.37 MB / 464.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange1): time 0.006562/0.1082, allocations: 4.436 MB / 469.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004144/0.1124, allocations: 2.122 MB / 471.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007092/0.1131, allocations: 12 kB / 471.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005996/0.1138, allocations: 162.6 kB / 471.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008378/0.1146, allocations: 218.3 kB / 471.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009098/0.1156, allocations: 430.7 kB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0012/0.1168, allocations: 0.9546 MB / 473 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008291/0.1176, allocations: 0.5005 MB / 473.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005634/0.1182, allocations: 370.7 kB / 473.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005692/0.1188, allocations: 410.2 kB / 474.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.1189, allocations: 108 kB / 474.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.1192, allocations: 136 kB / 474.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.1195, allocations: 247.3 kB / 474.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005575/0.12, allocations: 465.8 kB / 475.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001397/0.1214, allocations: 1.21 MB / 476.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1215, allocations: 0 / 476.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1215, allocations: 0 / 476.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.188e-05/0.1215, allocations: 3.984 kB / 476.4 MB, free: 6.961 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.002343/0.1239, allocations: 1.267 MB / 477.7 MB, free: 5.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.1239, allocations: 11.89 kB / 477.7 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001553/0.1241, allocations: 126.7 kB / 477.8 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001785/0.1243, allocations: 96.33 kB / 477.9 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009528/0.1252, allocations: 0.5719 MB / 478.5 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.785e-05/0.1253, allocations: 66.34 kB / 478.5 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/0.1254, allocations: 75.94 kB / 478.6 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1269, allocations: 0.7361 MB / 479.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.1269, allocations: 0 / 479.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.127, allocations: 28 kB / 479.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.127, allocations: 20 kB / 479.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/0.1283, allocations: 0.5348 MB / 479.9 MB, free: 3.305 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004528/0.1329, allocations: 2.707 MB / 482.6 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001171/0.1341, allocations: 464.4 kB / 483.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004684/0.1346, allocations: 185 kB / 483.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.1346, allocations: 4 kB / 483.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006752/0.1353, allocations: 274.5 kB / 483.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=35): time 2.234e-06/0.1353, allocations: 0 / 483.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=35): time 0.001954/0.1373, allocations: 0.7388 MB / 484.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.1374, allocations: 140.8 kB / 484.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009466/0.1384, allocations: 0.6749 MB / 485.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.579e-05/0.1384, allocations: 45.64 kB / 485.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003758/0.1388, allocations: 392.5 kB / 485.5 MB, free: 13.45 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.139, allocations: 119 kB / 485.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.1392, allocations: 98.2 kB / 485.7 MB, free: 13.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002306/0.1394, allocations: 378.7 kB / 486.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005162/0.1399, allocations: 187 kB / 486.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005968/0.1405, allocations: 295.2 kB / 486.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.1417, allocations: 0.596 MB / 487.2 MB, free: 11.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.1417, allocations: 4 kB / 487.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001485/0.1432, allocations: 0.6725 MB / 487.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.76e-05/0.1433, allocations: 93.09 kB / 487.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.1433, allocations: 4.438 kB / 487.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.1434, allocations: 24.86 kB / 488 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.1439, allocations: 107.8 kB / 488.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/0.1451, allocations: 1.376 MB / 489.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005604/0.1457, allocations: 91.52 kB / 489.5 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.673e-05/0.1458, allocations: 24.08 kB / 489.6 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007118/0.1465, allocations: 365.2 kB / 489.9 MB, free: 8.711 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005318/0.147, allocations: 283.2 kB / 490.2 MB, free: 8.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009993/0.148, allocations: 0.5746 MB / 490.8 MB, free: 7.734 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.084e-06/0.148, allocations: 3.938 kB / 490.8 MB, free: 7.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001351/0.1494, allocations: 0.6544 MB / 491.4 MB, free: 7.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.573e-05/0.1495, allocations: 85.11 kB / 491.5 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1495, allocations: 7.984 kB / 491.5 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.937e-05/0.1496, allocations: 29.3 kB / 491.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000362/0.15, allocations: 91.88 kB / 491.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001166/0.1511, allocations: 1.391 MB / 493 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004944/0.1516, allocations: 67.7 kB / 493.1 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.449e-05/0.1517, allocations: 23.98 kB / 493.1 MB, free: 5.195 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.0002645/0.152, allocations: 266.3 kB / 493.4 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.1521, allocations: 67.56 kB / 493.4 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001251/0.1533, allocations: 0.5382 MB / 494 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.1534, allocations: 8 kB / 494 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.1534, allocations: 0 / 494 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1534, allocations: 3.984 kB / 494 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.1556, allocations: 1.276 MB / 495.3 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.1556, allocations: 3.938 kB / 495.3 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/0.1559, allocations: 67.89 kB / 495.3 MB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.341e-05/0.1561, allocations: 16.84 kB / 495.4 MB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.493e-05/0.1561, allocations: 16 kB / 495.4 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.1572, allocations: 1.383 MB / 496.8 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1572, allocations: 0 / 496.8 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/0.159, allocations: 0.829 MB / 497.6 MB, free: 452 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.1592, allocations: 148.7 kB / 497.7 MB, free: 284 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.023e-05/0.1593, allocations: 15.94 kB / 497.7 MB, free: 268 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003868/0.1597, allocations: 39.95 kB / 497.8 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.1598, allocations: 31.95 kB / 497.8 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.162e-05/0.1599, allocations: 12 kB / 497.8 MB, free: 184 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007016/0.1606, allocations: 494.9 kB / 498.3 MB, free: 15.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1606, allocations: 4 kB / 498.3 MB, free: 15.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009731/0.1616, allocations: 319 kB / 498.6 MB, free: 15.38 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.003341/0.1649, allocations: 1.632 MB / 0.4885 GB, free: 13.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002398/0.1673, allocations: 1.265 MB / 0.4898 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.1674, allocations: 0 / 0.4898 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007735/0.1681, allocations: 454.2 kB / 0.4902 GB, free: 12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006973/0.1688, allocations: 94.95 kB / 0.4903 GB, free: 11.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009688/0.1786, allocations: 6.152 MB / 0.4963 GB, free: 5.562 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006299/0.1792, allocations: 0.9329 MB / 0.4972 GB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002843/0.1795, allocations: 72.36 kB / 0.4973 GB, free: 4.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003905/0.1799, allocations: 259.3 kB / 0.4975 GB, free: 4.273 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1799, allocations: 0 / 0.4975 GB, free: 4.273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2898/0.4698, allocations: 14.4 MB / 0.5116 GB, free: 43.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.58, allocations: 9.141 kB / 0.5116 GB, free: 43.94 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1_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_TestTwoFlange1.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe 2>&1)