Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.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 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-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.TestOneFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange1",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.007024/0.007024, allocations: 100.4 kB / 15.73 MB, free: 6.008 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.001489/0.001489, allocations: 191.8 kB / 16.67 MB, free: 5.926 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.416/1.416, 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 3.0.0-main/package.mo): time 0.04285/0.04285, allocations: 8.422 MB / 299 MB, free: 6.395 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001861/0.001861, allocations: 63.89 kB / 413.3 MB, free: 22.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.1004, allocations: 51.37 MB / 464.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1): time 0.007552/0.108, allocations: 5.152 MB / 469.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002886/0.1109, allocations: 1.488 MB / 471.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004832/0.1114, allocations: 19.94 kB / 471.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005153/0.112, allocations: 198.6 kB / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006066/0.1126, allocations: 234.3 kB / 471.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007237/0.1133, allocations: 382.7 kB / 472.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.1144, allocations: 0.9548 MB / 473.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006427/0.115, allocations: 486.9 kB / 473.6 MB, free: 9.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004417/0.1155, allocations: 366.7 kB / 473.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004784/0.116, allocations: 414.2 kB / 474.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001415/0.1161, allocations: 104 kB / 474.4 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002335/0.1164, allocations: 148 kB / 474.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.1166, allocations: 207.3 kB / 474.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004084/0.117, allocations: 433.9 kB / 475.2 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.1183, allocations: 1.105 MB / 476.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1183, allocations: 4 kB / 476.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1183, allocations: 4 kB / 476.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.1183, allocations: 0 / 476.3 MB, free: 7.059 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.00213/0.1204, allocations: 1.21 MB / 477.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.1205, allocations: 11.89 kB / 477.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001399/0.1207, allocations: 110.7 kB / 477.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.1208, allocations: 92.38 kB / 477.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008169/0.1216, allocations: 0.5174 MB / 478.2 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001261/0.1218, allocations: 79.14 kB / 478.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1219, allocations: 72 kB / 478.4 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/0.1233, allocations: 0.6956 MB / 479.1 MB, free: 4.133 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.1233, allocations: 15.83 kB / 479.1 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.961e-05/0.1234, allocations: 24 kB / 479.1 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.959e-05/0.1234, allocations: 16 kB / 479.1 MB, free: 4.078 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001311/0.1248, allocations: 0.5243 MB / 479.7 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003745/0.1285, allocations: 2.565 MB / 482.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.1296, allocations: 484.1 kB / 482.7 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004553/0.1301, allocations: 193.1 kB / 482.9 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-05/0.1301, allocations: 8.219 kB / 482.9 MB, free: 168 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006571/0.1308, allocations: 277.4 kB / 483.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=36): time 2.254e-06/0.1308, allocations: 0 / 483.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=36): time 0.001819/0.1326, allocations: 0.7683 MB / 483.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.1328, allocations: 136.5 kB / 484.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007049/0.1335, allocations: 0.5732 MB / 484.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.1335, allocations: 37.7 kB / 484.7 MB, free: 14.28 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003023/0.1338, allocations: 372.7 kB / 485.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.1339, allocations: 130.9 kB / 485.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.1341, allocations: 98.2 kB / 485.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.1343, allocations: 366.8 kB / 485.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004863/0.1348, allocations: 199 kB / 485.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005627/0.1354, allocations: 299.2 kB / 486.1 MB, free: 12.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.1365, allocations: 0.5999 MB / 486.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1365, allocations: 0 / 486.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001378/0.1379, allocations: 0.6845 MB / 487.4 MB, free: 11.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.92e-05/0.138, allocations: 97.09 kB / 487.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.138, allocations: 4 kB / 487.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001552/0.1381, allocations: 28.73 kB / 487.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.1386, allocations: 95.88 kB / 487.6 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001182/0.1398, allocations: 1.386 MB / 489 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/0.1403, allocations: 87.73 kB / 489.1 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.1403, allocations: 20 kB / 489.1 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000664/0.141, allocations: 345.1 kB / 489.5 MB, free: 9.164 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005286/0.1415, allocations: 295.1 kB / 489.7 MB, free: 8.832 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001007/0.1425, allocations: 0.5826 MB / 490.3 MB, free: 8.172 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.294e-06/0.1426, allocations: 0 / 490.3 MB, free: 8.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001296/0.1439, allocations: 0.6588 MB / 491 MB, free: 7.484 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.986e-05/0.1439, allocations: 95.59 kB / 491.1 MB, free: 7.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.144, allocations: 4 kB / 491.1 MB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.103e-05/0.1441, allocations: 20.8 kB / 491.1 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003715/0.1444, allocations: 99.81 kB / 491.2 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/0.1455, allocations: 1.386 MB / 492.6 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004622/0.146, allocations: 71.89 kB / 492.7 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.971e-05/0.1461, allocations: 24 kB / 492.7 MB, free: 5.629 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 8 (oneFlange.limTau.state,oneFlange.limitingTorque,tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,$whenCondition1,oneFlange.pDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * 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.0002864/0.1464, allocations: 272 kB / 492.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.1465, allocations: 67.56 kB / 493 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001286/0.1478, allocations: 0.5458 MB / 493.6 MB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1478, allocations: 4 kB / 493.6 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1478, allocations: 0 / 493.6 MB, free: 4.699 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.1478, allocations: 7.922 kB / 493.6 MB, free: 4.691 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002076/0.1499, allocations: 1.234 MB / 494.8 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1499, allocations: 0 / 494.8 MB, free: 3.387 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.1503, allocations: 71.83 kB / 494.9 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.045e-05/0.1504, allocations: 24.84 kB / 494.9 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.859e-05/0.1504, allocations: 12 kB / 494.9 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001094/0.1515, allocations: 1.363 MB / 496.3 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1515, allocations: 0 / 496.3 MB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001766/0.1533, allocations: 0.8598 MB / 497.1 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/0.1536, allocations: 176.7 kB / 497.3 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/0.1536, allocations: 11.94 kB / 497.3 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003998/0.154, allocations: 47.89 kB / 497.4 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.1542, allocations: 35.95 kB / 497.4 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.1542, allocations: 16 kB / 497.4 MB, free: 0.582 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005186/0.1547, allocations: 418.8 kB / 497.8 MB, free: 180 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1548, allocations: 0 / 497.8 MB, free: 180 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.000848/0.1556, allocations: 291.2 kB / 498.1 MB, free: 15.89 MB / 382.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.pDC.integrator1.y) * Number of discrete variables: 5 ($whenCondition1,tauRef.T_start,tauRef.count,oneFlange.limitingTorque,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 (34): * Single equations (assignments): 29 * 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.003263/0.1589, allocations: 1.655 MB / 499.8 MB, free: 14.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002328/0.1612, allocations: 1.265 MB / 0.4893 GB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.1612, allocations: 4.188 kB / 0.4893 GB, free: 12.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007283/0.162, allocations: 445.3 kB / 0.4897 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006298/0.1626, allocations: 93.59 kB / 0.4898 GB, free: 12.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008422/0.171, allocations: 5.444 MB / 0.4951 GB, free: 6.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000612/0.1717, allocations: 0.9016 MB / 0.496 GB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003297/0.172, allocations: 76.22 kB / 0.4961 GB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003493/0.1724, allocations: 247.3 kB / 0.4963 GB, free: 5.5 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1724, allocations: 0 / 0.4963 GB, free: 5.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2632/0.4356, allocations: 13.43 MB / 0.5094 GB, free: 45.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.15, allocations: 8.812 kB / 0.5094 GB, free: 45.48 MB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange1_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange1.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe 2>&1)