Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.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.TestOneFlangeConn,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlangeConn",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlangeConn,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlangeConn",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.008448/0.008448, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001877/0.001877, allocations: 197.5 kB / 16.67 MB, free: 5.52 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.384/1.384, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04012/0.04012, allocations: 8.04 MB / 298.6 MB, free: 6.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 59.91 kB / 412.6 MB, free: 22.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09941/0.1007, allocations: 51.19 MB / 463.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlangeConn): time 0.006546/0.1073, allocations: 4.143 MB / 467.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002998/0.1103, allocations: 1.418 MB / 469.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005575/0.111, allocations: 15.94 kB / 469.3 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005491/0.1115, allocations: 150.8 kB / 469.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008599/0.1124, allocations: 210.5 kB / 469.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000979/0.1134, allocations: 378.2 kB / 470.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001096/0.1145, allocations: 0.8533 MB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007797/0.1153, allocations: 491.6 kB / 471.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000497/0.1158, allocations: 330.8 kB / 471.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00048/0.1163, allocations: 358.4 kB / 472.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.1164, allocations: 99.94 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002396/0.1167, allocations: 136 kB / 472.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002168/0.1169, allocations: 203.4 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003685/0.1173, allocations: 410 kB / 472.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001004/0.1183, allocations: 1.052 MB / 473.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1183, allocations: 0 / 473.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1183, allocations: 4 kB / 474 MB, free: 9.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.476e-05/0.1183, allocations: 0 / 474 MB, free: 9.316 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: 161 * Number of variables: 161 Notification: Performance of Generate backend data structure: time 0.001693/0.12, allocations: 1.108 MB / 475.1 MB, free: 8.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.1201, allocations: 15.97 kB / 475.1 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001195/0.1202, allocations: 106.7 kB / 475.2 MB, free: 8.012 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.1204, allocations: 87.91 kB / 475.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007018/0.1211, allocations: 0.5208 MB / 475.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.029e-05/0.1211, allocations: 49.31 kB / 475.8 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.259e-05/0.1212, allocations: 64 kB / 475.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.1224, allocations: 0.6684 MB / 476.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.1224, allocations: 3.906 kB / 476.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.638e-05/0.1225, allocations: 31.98 kB / 476.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.1225, allocations: 16 kB / 476.6 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.1236, allocations: 488.9 kB / 477.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003559/0.1271, allocations: 2.555 MB / 479.6 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009279/0.1281, allocations: 424.1 kB / 480.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003918/0.1285, allocations: 173 kB / 480.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.247e-05/0.1285, allocations: 8.219 kB / 480.2 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005311/0.1291, allocations: 257.7 kB / 480.5 MB, free: 2.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 3.877e-06/0.1291, allocations: 4 kB / 480.5 MB, free: 2.453 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001579/0.1307, allocations: 0.6817 MB / 481.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.061e-05/0.1308, allocations: 136.5 kB / 481.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006699/0.1315, allocations: 0.5644 MB / 481.9 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.88e-05/0.1315, allocations: 33.7 kB / 481.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.1318, allocations: 344 kB / 482.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.359e-05/0.1319, allocations: 110.5 kB / 482.4 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.132, allocations: 77.59 kB / 482.4 MB, free: 428 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1322, allocations: 366.8 kB / 482.8 MB, free: 52 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004223/0.1326, allocations: 161.1 kB / 482.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004275/0.133, allocations: 258.5 kB / 483.2 MB, free: 15.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008332/0.1339, allocations: 0.5309 MB / 483.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.1339, allocations: 0 / 483.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00112/0.135, allocations: 0.5921 MB / 484.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.109e-05/0.1351, allocations: 97.41 kB / 484.4 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1351, allocations: 8 kB / 484.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001702/0.1353, allocations: 20.86 kB / 484.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003216/0.1356, allocations: 83.88 kB / 484.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.1367, allocations: 1.386 MB / 485.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.1371, allocations: 71.48 kB / 486 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/0.1372, allocations: 24.09 kB / 486 MB, free: 12.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005464/0.1378, allocations: 316.5 kB / 486.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004047/0.1382, allocations: 242.9 kB / 486.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007768/0.139, allocations: 0.5187 MB / 487.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.645e-06/0.139, allocations: 0 / 487.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001047/0.14, allocations: 0.5648 MB / 487.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.33e-05/0.1401, allocations: 93.09 kB / 487.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1401, allocations: 4 kB / 487.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.87e-05/0.1402, allocations: 24.8 kB / 487.8 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.1405, allocations: 76.22 kB / 487.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008822/0.1414, allocations: 1.382 MB / 489.2 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/0.1418, allocations: 55.7 kB / 489.3 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.332e-05/0.1419, allocations: 20 kB / 489.3 MB, free: 8.941 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,oneFlangeConn.limTau.state,$whenCondition1,oneFlangeConn.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.0001973/0.1421, allocations: 280.3 kB / 489.6 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.208e-05/0.1422, allocations: 47.44 kB / 489.6 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001087/0.1433, allocations: 0.4922 MB / 490.1 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1433, allocations: 4 kB / 490.1 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.1433, allocations: 7.875 kB / 490.1 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.1433, allocations: 0 / 490.1 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002043/0.1454, allocations: 1.151 MB / 491.3 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.1454, allocations: 0 / 491.3 MB, free: 6.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003332/0.1457, allocations: 59.88 kB / 491.3 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000132/0.1459, allocations: 24.86 kB / 491.3 MB, free: 6.766 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.1459, allocations: 15.98 kB / 491.4 MB, free: 6.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/0.1472, allocations: 1.367 MB / 492.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.1473, allocations: 3.938 kB / 492.7 MB, free: 5.238 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.1489, allocations: 0.7623 MB / 493.5 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.149, allocations: 136.5 kB / 493.6 MB, free: 4.289 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.651e-05/0.1491, allocations: 11.94 kB / 493.6 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003736/0.1495, allocations: 43.95 kB / 493.7 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.783e-05/0.1496, allocations: 35.91 kB / 493.7 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.868e-05/0.1496, allocations: 11.98 kB / 493.7 MB, free: 4.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005147/0.1502, allocations: 410.8 kB / 494.1 MB, free: 3.789 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1502, allocations: 0 / 494.1 MB, free: 3.789 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009321/0.1511, allocations: 274.8 kB / 494.4 MB, free: 3.52 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,oneFlangeConn.constPDC.integrator1.y) * Number of discrete variables: 4 ($whenCondition1,oneFlangeConn.limTau.state,tauRef.T_start,tauRef.count) * Number of discrete states: 2 (tauRef.count,oneFlangeConn.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.002694/0.1538, allocations: 1.575 MB / 496 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001949/0.1558, allocations: 1.174 MB / 497.1 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.1558, allocations: 3.938 kB / 497.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006178/0.1564, allocations: 429.3 kB / 497.6 MB, free: 308 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.157, allocations: 89.05 kB / 497.7 MB, free: 224 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007788/0.1648, allocations: 5.328 MB / 0.4912 GB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004733/0.1653, allocations: 0.8933 MB / 0.4921 GB, free: 9.785 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002377/0.1656, allocations: 67.34 kB / 0.4921 GB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002953/0.1659, allocations: 223.3 kB / 0.4923 GB, free: 9.5 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1659, allocations: 0 / 0.4923 GB, free: 9.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2258/0.3917, allocations: 12.85 MB / 0.5049 GB, free: 46.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.13, allocations: 3.188 kB / 0.5049 GB, free: 46.59 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlangeConn_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlangeConn.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlangeConn.pipe 2>&1)