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.006465/0.006465, allocations: 99.16 kB / 15.73 MB, free: 6.004 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.00114/0.001141, allocations: 191.8 kB / 16.67 MB, free: 5.93 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.292/1.292, 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 2.1.4-main/package.mo): time 0.03942/0.03942, allocations: 8.038 MB / 298.6 MB, free: 6.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.89 kB / 412.6 MB, free: 22.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.07836, allocations: 51.19 MB / 463.8 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.005517/0.08392, allocations: 4.293 MB / 468.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.08643, allocations: 1.457 MB / 469.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003004/0.08675, allocations: 12 kB / 469.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004165/0.0872, allocations: 158.8 kB / 469.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005266/0.08774, allocations: 218.4 kB / 469.9 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006897/0.08844, allocations: 389.9 kB / 470.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008201/0.08927, allocations: 0.9039 MB / 471.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006017/0.08988, allocations: 479.8 kB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003495/0.09024, allocations: 346.8 kB / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003813/0.09063, allocations: 378.4 kB / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.09075, allocations: 103.9 kB / 472.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001823/0.09094, allocations: 132 kB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.09115, allocations: 207.4 kB / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003737/0.09153, allocations: 437.9 kB / 473.2 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.09264, allocations: 1.097 MB / 474.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09265, allocations: 4 kB / 474.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09266, allocations: 0 / 474.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.09268, allocations: 0 / 474.3 MB, free: 8.953 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.00192/0.0946, allocations: 1.174 MB / 475.5 MB, free: 7.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.09465, allocations: 8.031 kB / 475.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/0.09477, allocations: 114.7 kB / 475.6 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.09493, allocations: 92.38 kB / 475.7 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007317/0.09566, allocations: 0.5246 MB / 476.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.09573, allocations: 58 kB / 476.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.09584, allocations: 68 kB / 476.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.09712, allocations: 0.7074 MB / 477.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.418e-05/0.09716, allocations: 0 / 477.1 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.261e-05/0.09723, allocations: 28 kB / 477.1 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.09725, allocations: 20 kB / 477.1 MB, free: 6.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.09841, allocations: 0.5015 MB / 477.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003538/0.102, allocations: 2.553 MB / 480.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009877/0.103, allocations: 443.5 kB / 480.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004184/0.1034, allocations: 176.8 kB / 480.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.131e-05/0.1034, allocations: 7.984 kB / 480.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005681/0.104, allocations: 263.4 kB / 481 MB, free: 1.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.724e-06/0.104, allocations: 0 / 481 MB, free: 1.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001644/0.1057, allocations: 0.7122 MB / 481.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.036e-05/0.1058, allocations: 140.5 kB / 481.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006408/0.1064, allocations: 0.5762 MB / 482.5 MB, free: 432 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.756e-05/0.1065, allocations: 37.7 kB / 482.5 MB, free: 388 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/0.1067, allocations: 364.7 kB / 482.9 MB, free: 20 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.1068, allocations: 111.2 kB / 483 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/0.107, allocations: 82.02 kB / 483 MB, free: 15.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1071, allocations: 366.5 kB / 483.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000441/0.1076, allocations: 166.3 kB / 483.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004826/0.1081, allocations: 267.2 kB / 483.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009307/0.109, allocations: 0.5425 MB / 484.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.109, allocations: 0 / 484.4 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001209/0.1102, allocations: 0.604 MB / 485 MB, free: 13.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.316e-05/0.1103, allocations: 99.53 kB / 485.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1103, allocations: 4 kB / 485.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/0.1105, allocations: 28.84 kB / 485.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.1109, allocations: 84.16 kB / 485.2 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001029/0.1119, allocations: 1.391 MB / 486.6 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004485/0.1124, allocations: 83.58 kB / 486.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.1124, allocations: 15.98 kB / 486.7 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005711/0.113, allocations: 320.9 kB / 487 MB, free: 11.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004386/0.1134, allocations: 255.3 kB / 487.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008253/0.1143, allocations: 0.5226 MB / 487.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.1143, allocations: 0 / 487.8 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.001086/0.1154, allocations: 0.5881 MB / 488.3 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.24e-05/0.1154, allocations: 93.47 kB / 488.4 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-06/0.1155, allocations: 4 kB / 488.4 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.311e-05/0.1156, allocations: 28.94 kB / 488.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.1159, allocations: 79.83 kB / 488.5 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009179/0.1168, allocations: 1.387 MB / 489.9 MB, free: 8.316 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004244/0.1172, allocations: 63.78 kB / 490 MB, free: 8.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.1173, allocations: 28.08 kB / 490 MB, free: 8.227 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.0002046/0.1175, allocations: 263.5 kB / 490.3 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.937e-05/0.1176, allocations: 59.61 kB / 490.3 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.1187, allocations: 0.5104 MB / 490.8 MB, free: 7.355 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.1187, allocations: 4 kB / 490.8 MB, free: 7.352 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1187, allocations: 3.938 kB / 490.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1187, allocations: 0 / 490.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001845/0.1206, allocations: 1.191 MB / 492 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1206, allocations: 0 / 492 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.1209, allocations: 59.89 kB / 492.1 MB, free: 6.027 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.66e-05/0.121, allocations: 24.84 kB / 492.1 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.1211, allocations: 8 kB / 492.1 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009375/0.122, allocations: 1.387 MB / 493.5 MB, free: 4.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.122, allocations: 4.156 kB / 493.5 MB, free: 4.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001567/0.1236, allocations: 0.7969 MB / 494.3 MB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000156/0.1238, allocations: 144.7 kB / 494.5 MB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.844e-05/0.1238, allocations: 8 kB / 494.5 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000384/0.1242, allocations: 47.89 kB / 494.5 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.1243, allocations: 27.97 kB / 494.5 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.1244, allocations: 11.98 kB / 494.6 MB, free: 3.375 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004671/0.1249, allocations: 422.8 kB / 495 MB, free: 2.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1249, allocations: 0 / 495 MB, free: 2.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007636/0.1256, allocations: 291.1 kB / 495.3 MB, free: 2.68 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.002475/0.1281, allocations: 1.593 MB / 496.8 MB, free: 1.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001901/0.13, allocations: 1.197 MB / 498 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.13, allocations: 0 / 498 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006324/0.1307, allocations: 438.1 kB / 498.5 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.1312, allocations: 89.7 kB / 498.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007473/0.1387, allocations: 5.473 MB / 0.4922 GB, free: 9.672 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000501/0.1392, allocations: 0.9056 MB / 0.4931 GB, free: 8.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002731/0.1395, allocations: 68.14 kB / 0.4932 GB, free: 8.664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/0.1398, allocations: 239.2 kB / 0.4934 GB, free: 8.434 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.1399, allocations: 0 / 0.4934 GB, free: 8.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2072/0.3471, allocations: 13.18 MB / 0.5063 GB, free: 45.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.66, allocations: 15.61 kB / 0.5063 GB, free: 45.59 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)