Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.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.TestOneFlange3,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3",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.001244/0.001244, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00128/0.00128, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.443/1.443, allocations: 222.9 MB / 240.2 MB, free: 4.258 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1767/0.1767, allocations: 8.939 MB / 299.3 MB, free: 2.043 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002642/0.002642, allocations: 63.88 kB / 361.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1207, allocations: 51.49 MB / 413.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3): time 0.007684/0.1285, allocations: 5.157 MB / 418.6 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003733/0.1323, allocations: 2.086 MB / 420.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005294/0.1328, allocations: 19.94 kB / 420.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005326/0.1334, allocations: 198.6 kB / 420.9 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000631/0.134, allocations: 242.3 kB / 421.1 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000761/0.1348, allocations: 367.4 kB / 421.5 MB, free: 1.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009911/0.1358, allocations: 0.9626 MB / 422.4 MB, free: 388 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1987/0.3345, allocations: 478.5 kB / 422.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007472/0.3353, allocations: 368 kB / 423.3 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005329/0.3358, allocations: 424.4 kB / 423.7 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.3359, allocations: 107.9 kB / 423.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002701/0.3362, allocations: 167.1 kB / 423.9 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.3364, allocations: 210.7 kB / 424.1 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003224/0.3367, allocations: 438.6 kB / 424.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009252/0.3377, allocations: 1.109 MB / 425.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.3377, allocations: 1.188 kB / 425.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3377, allocations: 0 / 425.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.3377, allocations: 0 / 425.7 MB, free: 36.34 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.001999/0.3397, allocations: 1.198 MB / 426.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.3398, allocations: 14.73 kB / 426.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.3399, allocations: 111.1 kB / 427 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.3401, allocations: 92.31 kB / 427.1 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005759/0.3406, allocations: 0.4976 MB / 427.6 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.707e-05/0.3408, allocations: 80.05 kB / 427.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.831e-05/0.3409, allocations: 81.94 kB / 427.8 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.3421, allocations: 0.7045 MB / 428.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.571e-05/0.3421, allocations: 3.281 kB / 428.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.396e-05/0.3422, allocations: 25.91 kB / 428.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.3422, allocations: 17.41 kB / 428.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.3433, allocations: 0.5268 MB / 429 MB, free: 35.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.3463, allocations: 2.599 MB / 431.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009071/0.3473, allocations: 469.4 kB / 432.1 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000385/0.3476, allocations: 198.3 kB / 432.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.3477, allocations: 3.938 kB / 432.3 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005891/0.3483, allocations: 276.7 kB / 432.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.945e-06/0.3483, allocations: 0 / 432.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001543/0.3499, allocations: 0.7672 MB / 433.3 MB, free: 33.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.734e-05/0.3499, allocations: 168.3 kB / 433.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005578/0.3505, allocations: 0.5882 MB / 434.1 MB, free: 33.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.3505, allocations: 40.2 kB / 434.1 MB, free: 33.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001854/0.3507, allocations: 364.1 kB / 434.5 MB, free: 32.81 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.3508, allocations: 120.5 kB / 434.6 MB, free: 32.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001289/0.3509, allocations: 98.27 kB / 434.7 MB, free: 32.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.388e-05/0.351, allocations: 370.9 kB / 435 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004297/0.3515, allocations: 185.6 kB / 435.2 MB, free: 32.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000446/0.3519, allocations: 314.2 kB / 435.5 MB, free: 32.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008598/0.3528, allocations: 0.6063 MB / 436.1 MB, free: 31.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3528, allocations: 0 / 436.1 MB, free: 31.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001134/0.3539, allocations: 0.6791 MB / 436.8 MB, free: 31.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.486e-05/0.354, allocations: 95.05 kB / 436.9 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.354, allocations: 4.453 kB / 436.9 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001512/0.3542, allocations: 29.53 kB / 436.9 MB, free: 31.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003785/0.3546, allocations: 101 kB / 437 MB, free: 31.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007408/0.3553, allocations: 1.377 MB / 438.4 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/0.3558, allocations: 89.05 kB / 438.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/0.3558, allocations: 29.17 kB / 438.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005325/0.3564, allocations: 337.6 kB / 438.9 MB, free: 29.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003967/0.3568, allocations: 300.2 kB / 439.2 MB, free: 29.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007426/0.3575, allocations: 0.5788 MB / 439.7 MB, free: 28.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.815e-06/0.3575, allocations: 3.312 kB / 439.7 MB, free: 28.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.00102/0.3586, allocations: 0.6582 MB / 440.4 MB, free: 28.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.837e-05/0.3586, allocations: 98.58 kB / 440.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3586, allocations: 3.312 kB / 440.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.272e-05/0.3587, allocations: 24.77 kB / 440.5 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003324/0.359, allocations: 96.81 kB / 440.6 MB, free: 28.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006399/0.3597, allocations: 1.378 MB / 442 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/0.3601, allocations: 75.27 kB / 442.1 MB, free: 27.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.3602, allocations: 25.94 kB / 442.1 MB, free: 27.03 MB / 350.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.0002095/0.3604, allocations: 275.5 kB / 442.4 MB, free: 26.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.77e-05/0.3605, allocations: 63.31 kB / 442.4 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.3615, allocations: 0.5408 MB / 443 MB, free: 26.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3616, allocations: 3.062 kB / 443 MB, free: 26.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.3616, allocations: 0 / 443 MB, free: 26.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3616, allocations: 3.516 kB / 443 MB, free: 26.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001659/0.3632, allocations: 1.26 MB / 444.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3633, allocations: 0 / 444.2 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.3636, allocations: 65.61 kB / 444.3 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-05/0.3637, allocations: 29.72 kB / 444.3 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.3637, allocations: 10 kB / 444.3 MB, free: 25.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005988/0.3643, allocations: 1.376 MB / 445.7 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3643, allocations: 0 / 445.7 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.3657, allocations: 0.8448 MB / 446.6 MB, free: 23.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00016/0.3659, allocations: 178.9 kB / 446.7 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.829e-05/0.366, allocations: 13.36 kB / 446.7 MB, free: 23.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/0.3664, allocations: 47.69 kB / 446.8 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3665, allocations: 49.42 kB / 446.8 MB, free: 23.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.606e-05/0.3665, allocations: 13.66 kB / 446.9 MB, free: 23.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003927/0.3669, allocations: 415.6 kB / 447.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3669, allocations: 0 / 447.3 MB, free: 23.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008097/0.3677, allocations: 293 kB / 447.5 MB, free: 23.41 MB / 350.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.002859/0.3706, allocations: 1.692 MB / 449.2 MB, free: 22.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00202/0.3726, allocations: 1.289 MB / 450.5 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.177e-06/0.3727, allocations: 0 / 450.5 MB, free: 21.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006023/0.3733, allocations: 453.8 kB / 451 MB, free: 21.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006789/0.374, allocations: 91.62 kB / 451.1 MB, free: 21.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006876/0.3808, allocations: 5.603 MB / 456.7 MB, free: 17.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.3812, allocations: 0.9073 MB / 457.6 MB, free: 17.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002932/0.3815, allocations: 63.64 kB / 457.6 MB, free: 17.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000265/0.3818, allocations: 242.2 kB / 457.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3818, allocations: 0 / 457.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04811/0.4299, allocations: 13.55 MB / 471.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.942/10.37, allocations: 9.031 kB / 471.4 MB, free: 15.52 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange3.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange3.pipe 2>&1)