Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_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_EHPTlib_MapBased_TestingModels_TestTwoFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange,fileNamePrefix="EHPTlib_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.005592/0.005592, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001093/0.001093, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.05694/0.05694, allocations: 8.046 MB / 298.6 MB, free: 6.762 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 63.91 kB / 412.6 MB, free: 22.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08043/0.08157, allocations: 51.2 MB / 463.8 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.00585/0.08746, allocations: 4.288 MB / 468.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002527/0.09001, allocations: 1.461 MB / 469.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003019/0.09033, allocations: 15.94 kB / 469.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000409/0.09075, allocations: 158.8 kB / 469.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00049/0.09126, allocations: 210.4 kB / 469.9 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006821/0.09195, allocations: 405.5 kB / 470.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007806/0.09274, allocations: 0.8961 MB / 471.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005993/0.09335, allocations: 471.8 kB / 471.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003232/0.09368, allocations: 342.9 kB / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003803/0.09407, allocations: 386.3 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.09419, allocations: 103.9 kB / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.09437, allocations: 128 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002055/0.09458, allocations: 215.4 kB / 472.8 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003486/0.09494, allocations: 430 kB / 473.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.096, allocations: 1.101 MB / 474.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.09601, allocations: 0 / 474.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.09602, allocations: 0 / 474.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.09604, allocations: 0 / 474.3 MB, free: 8.941 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.001852/0.09789, allocations: 1.178 MB / 475.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.09794, allocations: 12.03 kB / 475.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.09807, allocations: 110.7 kB / 475.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.09821, allocations: 96.36 kB / 475.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006971/0.09891, allocations: 0.5247 MB / 476.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.927e-05/0.09897, allocations: 53.98 kB / 476.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.09908, allocations: 72 kB / 476.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001283/0.1004, allocations: 0.6996 MB / 477.1 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.714e-05/0.1004, allocations: 7.938 kB / 477.1 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.075e-05/0.1005, allocations: 28 kB / 477.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1005, allocations: 16 kB / 477.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.1017, allocations: 0.5094 MB / 477.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003504/0.1052, allocations: 2.538 MB / 480.2 MB, free: 2.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009682/0.1062, allocations: 447.4 kB / 480.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.1066, allocations: 180.8 kB / 480.8 MB, free: 2.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.1066, allocations: 4 kB / 480.8 MB, free: 2.195 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005613/0.1072, allocations: 263.3 kB / 481 MB, free: 1.918 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.763e-06/0.1072, allocations: 4 kB / 481 MB, free: 1.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001646/0.1089, allocations: 0.7084 MB / 481.7 MB, free: 1.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.109, allocations: 132.5 kB / 481.9 MB, free: 1.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006296/0.1096, allocations: 0.5801 MB / 482.5 MB, free: 424 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.1096, allocations: 37.7 kB / 482.5 MB, free: 380 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.1099, allocations: 360.7 kB / 482.8 MB, free: 16 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.11, allocations: 119.2 kB / 483 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001279/0.1101, allocations: 78.06 kB / 483 MB, free: 15.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1103, allocations: 370.7 kB / 483.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004293/0.1107, allocations: 162.3 kB / 483.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004768/0.1112, allocations: 259.3 kB / 483.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009361/0.1122, allocations: 0.5541 MB / 484.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.1122, allocations: 4 kB / 484.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001176/0.1134, allocations: 0.6041 MB / 485 MB, free: 13.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.748e-05/0.1134, allocations: 99.38 kB / 485.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.1134, allocations: 4.375 kB / 485.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001412/0.1136, allocations: 32.78 kB / 485.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003421/0.1139, allocations: 79.89 kB / 485.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009949/0.115, allocations: 1.394 MB / 486.6 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004428/0.1154, allocations: 75.66 kB / 486.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.726e-05/0.1155, allocations: 24.09 kB / 486.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005594/0.116, allocations: 320.8 kB / 487 MB, free: 11.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004276/0.1165, allocations: 251.2 kB / 487.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008296/0.1173, allocations: 0.5188 MB / 487.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.854e-06/0.1173, allocations: 0 / 487.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.00109/0.1184, allocations: 0.592 MB / 488.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/0.1185, allocations: 97.09 kB / 488.4 MB, free: 9.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1185, allocations: 4 kB / 488.4 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.545e-05/0.1186, allocations: 20.86 kB / 488.5 MB, free: 9.902 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.1189, allocations: 75.88 kB / 488.5 MB, free: 9.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009055/0.1198, allocations: 1.395 MB / 489.9 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004192/0.1202, allocations: 67.89 kB / 490 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.1203, allocations: 20 kB / 490 MB, free: 8.211 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.0001852/0.1205, allocations: 263.6 kB / 490.3 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.709e-05/0.1205, allocations: 55.67 kB / 490.3 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001119/0.1217, allocations: 0.5103 MB / 490.8 MB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.1217, allocations: 4 kB / 490.8 MB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1217, allocations: 4 kB / 490.8 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1217, allocations: 0 / 490.8 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001801/0.1235, allocations: 1.195 MB / 492 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1235, allocations: 3.984 kB / 492 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.1239, allocations: 55.95 kB / 492.1 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.616e-05/0.1239, allocations: 20.86 kB / 492.1 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.124, allocations: 15.92 kB / 492.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000879/0.1249, allocations: 1.379 MB / 493.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1249, allocations: 0 / 493.5 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.1264, allocations: 0.8008 MB / 494.3 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.1266, allocations: 144.7 kB / 494.5 MB, free: 3.457 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.788e-05/0.1266, allocations: 8 kB / 494.5 MB, free: 3.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003995/0.127, allocations: 51.94 kB / 494.5 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.1271, allocations: 28.06 kB / 494.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.1272, allocations: 8 kB / 494.6 MB, free: 3.363 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004521/0.1276, allocations: 422.8 kB / 495 MB, free: 2.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1276, allocations: 0 / 495 MB, free: 2.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007315/0.1284, allocations: 287.1 kB / 495.2 MB, free: 2.672 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.002454/0.1308, allocations: 1.608 MB / 496.9 MB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.1328, allocations: 1.198 MB / 498 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1328, allocations: 0 / 498 MB, free: 15.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006408/0.1334, allocations: 433.3 kB / 498.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005346/0.134, allocations: 86.09 kB / 498.6 MB, free: 15.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007463/0.1415, allocations: 5.488 MB / 0.4922 GB, free: 9.645 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004513/0.1419, allocations: 0.9017 MB / 0.4931 GB, free: 8.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002275/0.1422, allocations: 68.12 kB / 0.4932 GB, free: 8.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003003/0.1425, allocations: 227.4 kB / 0.4934 GB, free: 8.422 MB / 382.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1425, allocations: 0 / 0.4934 GB, free: 8.422 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2061/0.3486, allocations: 13.19 MB / 0.5063 GB, free: 46.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.989/10.34, allocations: 4 kB / 0.5063 GB, free: 46.36 MB / 382.1 MB (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.sim & python3 -m fmpy simulate --output-file EHPTlib_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_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)