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.008778/0.008778, allocations: 101.7 kB / 15.73 MB, free: 5.59 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.001709/0.001709, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.38/1.38, 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 2.1.4-main/package.mo): time 0.0381/0.0381, allocations: 8.036 MB / 298.6 MB, free: 6.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.91 kB / 412.6 MB, free: 22.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08973/0.09092, allocations: 51.19 MB / 463.8 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.005989/0.09695, allocations: 4.299 MB / 468.1 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002856/0.09984, allocations: 1.454 MB / 469.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006935/0.1006, allocations: 15.94 kB / 469.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006613/0.1012, allocations: 158.8 kB / 469.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009452/0.1022, allocations: 214.4 kB / 469.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008752/0.1031, allocations: 393.8 kB / 470.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001022/0.1042, allocations: 0.9 MB / 471.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006362/0.1048, allocations: 479.8 kB / 471.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.1052, allocations: 342.9 kB / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004415/0.1057, allocations: 382.3 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001222/0.1058, allocations: 103.9 kB / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.1061, allocations: 131.9 kB / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002268/0.1063, allocations: 211.4 kB / 472.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003667/0.1067, allocations: 430 kB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001039/0.1077, allocations: 1.091 MB / 474.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1077, allocations: 0 / 474.3 MB, free: 8.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1077, allocations: 4 kB / 474.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.1077, allocations: 0 / 474.3 MB, free: 8.973 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.001783/0.1095, allocations: 1.163 MB / 475.5 MB, free: 7.738 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.1096, allocations: 12.03 kB / 475.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.1097, allocations: 114.7 kB / 475.6 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001381/0.1099, allocations: 83.91 kB / 475.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007273/0.1106, allocations: 0.5165 MB / 476.2 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.251e-05/0.1107, allocations: 50 kB / 476.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.1108, allocations: 79.98 kB / 476.3 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.112, allocations: 0.7035 MB / 477 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.622e-05/0.112, allocations: 7.906 kB / 477 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.616e-05/0.1121, allocations: 24 kB / 477.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1121, allocations: 16 kB / 477.1 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.1132, allocations: 0.5055 MB / 477.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003453/0.1167, allocations: 2.533 MB / 480.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009443/0.1177, allocations: 447.5 kB / 480.5 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003863/0.1181, allocations: 176.8 kB / 480.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.79e-05/0.1181, allocations: 4 kB / 480.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006162/0.1187, allocations: 271.3 kB / 481 MB, free: 1.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.904e-06/0.1187, allocations: 0 / 481 MB, free: 1.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001638/0.1204, allocations: 0.7081 MB / 481.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.779e-05/0.1205, allocations: 136.5 kB / 481.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006559/0.1211, allocations: 0.5878 MB / 482.4 MB, free: 480 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.549e-05/0.1212, allocations: 37.7 kB / 482.5 MB, free: 436 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.1214, allocations: 348 kB / 482.8 MB, free: 84 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.1216, allocations: 114.6 kB / 482.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.1217, allocations: 73.98 kB / 483 MB, free: 15.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1219, allocations: 370.7 kB / 483.3 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003972/0.1223, allocations: 162.3 kB / 483.5 MB, free: 15.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/0.1228, allocations: 259.3 kB / 483.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008872/0.1237, allocations: 0.5503 MB / 484.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1237, allocations: 4 kB / 484.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001189/0.1249, allocations: 0.5998 MB / 484.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.259e-05/0.125, allocations: 101.1 kB / 485 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.125, allocations: 7.938 kB / 485 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001593/0.1251, allocations: 24.84 kB / 485 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003321/0.1255, allocations: 75.89 kB / 485.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.1266, allocations: 1.395 MB / 486.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/0.127, allocations: 79.52 kB / 486.6 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.1271, allocations: 19.98 kB / 486.6 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006149/0.1277, allocations: 320.8 kB / 486.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004825/0.1282, allocations: 251.3 kB / 487.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008539/0.1291, allocations: 0.5265 MB / 487.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.434e-06/0.1291, allocations: 0 / 487.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.001121/0.1302, allocations: 0.5801 MB / 488.3 MB, free: 10.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.858e-05/0.1303, allocations: 93.09 kB / 488.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1303, allocations: 4.375 kB / 488.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.482e-05/0.1304, allocations: 24.86 kB / 488.4 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.1307, allocations: 83.81 kB / 488.5 MB, free: 9.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.1317, allocations: 1.391 MB / 489.9 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004203/0.1322, allocations: 63.7 kB / 489.9 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.662e-05/0.1322, allocations: 16 kB / 489.9 MB, free: 8.305 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.0002007/0.1324, allocations: 271.6 kB / 490.2 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.172e-05/0.1325, allocations: 55.34 kB / 490.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.1336, allocations: 0.5103 MB / 490.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.1336, allocations: 7.984 kB / 490.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1336, allocations: 0 / 490.8 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1336, allocations: 4 kB / 490.8 MB, free: 7.418 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001961/0.1356, allocations: 1.187 MB / 492 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1356, allocations: 0 / 492 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003205/0.136, allocations: 63.88 kB / 492 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.284e-05/0.136, allocations: 16.86 kB / 492 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.608e-05/0.1361, allocations: 15.98 kB / 492.1 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009368/0.137, allocations: 1.379 MB / 493.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.137, allocations: 160 / 493.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.1386, allocations: 0.7967 MB / 494.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000254/0.1389, allocations: 136.4 kB / 494.4 MB, free: 3.559 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.131e-05/0.139, allocations: 12 kB / 494.4 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003867/0.1394, allocations: 47.88 kB / 494.4 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001202/0.1395, allocations: 27.97 kB / 494.5 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.1395, allocations: 16 kB / 494.5 MB, free: 3.457 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006319/0.1402, allocations: 422.8 kB / 494.9 MB, free: 3.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.1402, allocations: 3.938 kB / 494.9 MB, free: 3.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001029/0.1412, allocations: 286.8 kB / 495.2 MB, free: 2.762 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.002588/0.1438, allocations: 1.599 MB / 496.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002142/0.146, allocations: 1.189 MB / 498 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.146, allocations: 0 / 498 MB, free: 15.97 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006433/0.1467, allocations: 442.1 kB / 498.4 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.1473, allocations: 82.78 kB / 498.5 MB, free: 15.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008306/0.1556, allocations: 5.455 MB / 0.4921 GB, free: 9.777 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005277/0.1562, allocations: 0.8978 MB / 0.493 GB, free: 8.848 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.1565, allocations: 72.12 kB / 0.4931 GB, free: 8.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003099/0.1568, allocations: 239.3 kB / 0.4933 GB, free: 8.543 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.1568, allocations: 0 / 0.4933 GB, free: 8.543 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.249/0.4058, allocations: 13.18 MB / 0.5062 GB, free: 46.29 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.97, allocations: 6.281 kB / 0.5062 GB, free: 46.29 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)