Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.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.TestOneFlange,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlange,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange",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.006322/0.006323, allocations: 104.6 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.001158/0.001158, allocations: 189.8 kB / 16.67 MB, free: 5.516 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04085/0.04085, allocations: 8.039 MB / 298.6 MB, free: 6.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 67.84 kB / 412.6 MB, free: 22.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1018, allocations: 51.19 MB / 463.8 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange): time 0.005574/0.1075, allocations: 4.105 MB / 467.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002531/0.11, allocations: 1.411 MB / 469.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003387/0.1104, allocations: 15.94 kB / 469.3 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000431/0.1108, allocations: 150.9 kB / 469.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005523/0.1114, allocations: 202.5 kB / 469.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007205/0.1122, allocations: 385.8 kB / 470 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007641/0.1129, allocations: 0.8451 MB / 470.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005718/0.1135, allocations: 434.5 kB / 471.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003233/0.1139, allocations: 326.9 kB / 471.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003494/0.1142, allocations: 350.5 kB / 472 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.1143, allocations: 96 kB / 472 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001952/0.1145, allocations: 132 kB / 472.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001993/0.1147, allocations: 199.4 kB / 472.4 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003427/0.1151, allocations: 406.1 kB / 472.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.1161, allocations: 1.021 MB / 473.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.1161, allocations: 4 kB / 473.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1161, allocations: 0 / 473.8 MB, free: 9.473 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.1161, allocations: 0 / 473.8 MB, free: 9.473 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.001747/0.1179, allocations: 1.102 MB / 474.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1179, allocations: 8.031 kB / 474.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1181, allocations: 110.6 kB / 475 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.1182, allocations: 80 kB / 475.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006964/0.1189, allocations: 0.5049 MB / 475.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.33e-05/0.119, allocations: 49.31 kB / 475.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.211e-05/0.1191, allocations: 71.84 kB / 475.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.1202, allocations: 0.6488 MB / 476.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.1202, allocations: 0 / 476.4 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.513e-05/0.1203, allocations: 28 kB / 476.4 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.1203, allocations: 16 kB / 476.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.1214, allocations: 476.9 kB / 476.9 MB, free: 6.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/0.125, allocations: 2.493 MB / 479.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009564/0.126, allocations: 431.9 kB / 479.8 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004135/0.1264, allocations: 173 kB / 480 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1265, allocations: 8.172 kB / 480 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005614/0.1271, allocations: 253.7 kB / 480.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.814e-06/0.1271, allocations: 0 / 480.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001607/0.1287, allocations: 0.6855 MB / 480.9 MB, free: 2.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.438e-05/0.1288, allocations: 144.5 kB / 481 MB, free: 1.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006337/0.1294, allocations: 0.5605 MB / 481.6 MB, free: 1.266 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.371e-05/0.1295, allocations: 33.7 kB / 481.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002405/0.1297, allocations: 343.4 kB / 482 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.007e-05/0.1298, allocations: 102.6 kB / 482.1 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001321/0.1299, allocations: 73.69 kB / 482.1 MB, free: 0.707 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1301, allocations: 362.8 kB / 482.5 MB, free: 352 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003931/0.1305, allocations: 157.2 kB / 482.6 MB, free: 188 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004565/0.131, allocations: 258.5 kB / 482.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009339/0.1319, allocations: 0.5348 MB / 483.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1319, allocations: 0 / 483.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001175/0.1331, allocations: 0.5882 MB / 484 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.623e-05/0.1332, allocations: 89.05 kB / 484.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.1332, allocations: 4 kB / 484.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001884/0.1334, allocations: 29.12 kB / 484.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003404/0.1338, allocations: 87.88 kB / 484.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001216/0.135, allocations: 1.378 MB / 485.6 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004434/0.1354, allocations: 71.48 kB / 485.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.507e-05/0.1355, allocations: 31.91 kB / 485.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005747/0.1361, allocations: 312.6 kB / 486 MB, free: 12.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000416/0.1365, allocations: 238.9 kB / 486.2 MB, free: 12.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008056/0.1373, allocations: 0.5187 MB / 486.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.733e-06/0.1373, allocations: 4 kB / 486.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization_lambda0): time 0.001061/0.1384, allocations: 0.5651 MB / 487.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.519e-05/0.1385, allocations: 85.11 kB / 487.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.176e-06/0.1385, allocations: 4 kB / 487.4 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.622e-05/0.1386, allocations: 28.84 kB / 487.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002869/0.1389, allocations: 75.89 kB / 487.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.1401, allocations: 1.379 MB / 488.9 MB, free: 9.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.1405, allocations: 71.8 kB / 489 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.1406, allocations: 12 kB / 489 MB, free: 9.238 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 (oneFlange.limTau.state,tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,$whenCondition1,oneFlange.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.0002562/0.1408, allocations: 279.4 kB / 489.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.076e-05/0.1409, allocations: 59.28 kB / 489.3 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001064/0.142, allocations: 496 kB / 489.8 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.142, allocations: 7.938 kB / 489.8 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-06/0.142, allocations: 0 / 489.8 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.142, allocations: 0 / 489.8 MB, free: 8.371 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001822/0.1438, allocations: 1.135 MB / 490.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1439, allocations: 0 / 490.9 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.1442, allocations: 55.89 kB / 491 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.664e-05/0.1443, allocations: 20.86 kB / 491 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.552e-05/0.1443, allocations: 15.92 kB / 491 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/0.1454, allocations: 1.378 MB / 492.4 MB, free: 5.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1454, allocations: 4 kB / 492.4 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001471/0.1469, allocations: 0.7661 MB / 493.2 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.147, allocations: 136.5 kB / 493.3 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.996e-05/0.1471, allocations: 8 kB / 493.3 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003742/0.1475, allocations: 43.95 kB / 493.4 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/0.1476, allocations: 39.89 kB / 493.4 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.1476, allocations: 12 kB / 493.4 MB, free: 4.492 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004751/0.1481, allocations: 406.8 kB / 493.8 MB, free: 4.098 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1481, allocations: 0 / 493.8 MB, free: 4.098 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007807/0.1489, allocations: 263 kB / 494.1 MB, free: 3.84 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,oneFlange.constPDC.integrator1.y) * Number of discrete variables: 4 ($whenCondition1,tauRef.T_start,tauRef.count,oneFlange.limTau.state) * Number of discrete states: 2 (tauRef.count,oneFlange.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.002714/0.1516, allocations: 1.573 MB / 495.6 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.1538, allocations: 1.162 MB / 496.8 MB, free: 1.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.1538, allocations: 4.812 kB / 496.8 MB, free: 1.098 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006317/0.1544, allocations: 429.2 kB / 497.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006069/0.1551, allocations: 89.73 kB / 497.3 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007646/0.1627, allocations: 5.317 MB / 0.4908 GB, free: 11.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004866/0.1632, allocations: 0.8855 MB / 0.4917 GB, free: 10.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002628/0.1635, allocations: 71.36 kB / 0.4918 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002845/0.1638, allocations: 207.4 kB / 0.492 GB, free: 9.871 MB / 382.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1638, allocations: 0 / 0.492 GB, free: 9.871 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2466/0.4105, allocations: 12.77 MB / 0.5044 GB, free: 46.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.85, allocations: 1.5 kB / 0.5044 GB, free: 46.98 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe 2>&1)