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 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.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.001777/0.001776, allocations: 108 kB / 15.61 MB, free: 152 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.001958/0.001958, allocations: 196 kB / 16.53 MB, free: 6.664 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.518/1.518, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1602/0.1602, allocations: 8.949 MB / 299.3 MB, free: 1.992 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001998/0.001998, allocations: 67.88 kB / 361.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1129, allocations: 51.49 MB / 413.4 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1): time 0.00774/0.1207, allocations: 5.139 MB / 418.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003101/0.1238, allocations: 1.488 MB / 420.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005542/0.1244, allocations: 19.94 kB / 420.1 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005215/0.125, allocations: 194.6 kB / 420.3 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007043/0.1257, allocations: 230.4 kB / 420.5 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007805/0.1265, allocations: 383.3 kB / 420.9 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001177/0.1277, allocations: 0.9587 MB / 421.8 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007001/0.1284, allocations: 482.9 kB / 422.3 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005298/0.1289, allocations: 370.7 kB / 422.7 MB, free: 196 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2112/0.3402, allocations: 408.3 kB / 423.1 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002919/0.3405, allocations: 103.6 kB / 423.2 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003376/0.3408, allocations: 143.9 kB / 423.3 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.3411, allocations: 206.9 kB / 423.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003898/0.3414, allocations: 435.9 kB / 423.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00109/0.3425, allocations: 1.085 MB / 425 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3426, allocations: 3.781 kB / 425 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3426, allocations: 0 / 425 MB, free: 37.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.48e-05/0.3426, allocations: 0.8125 kB / 425 MB, free: 37.08 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.001848/0.3445, allocations: 1.185 MB / 426.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.3445, allocations: 12.17 kB / 426.2 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001054/0.3446, allocations: 112.1 kB / 426.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.3448, allocations: 91.31 kB / 426.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005466/0.3453, allocations: 0.4938 MB / 426.9 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.3454, allocations: 81.14 kB / 427 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.962e-05/0.3455, allocations: 78.59 kB / 427.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.3467, allocations: 0.6956 MB / 427.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.3467, allocations: 0 / 427.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.818e-05/0.3468, allocations: 28.66 kB / 427.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.3468, allocations: 18.34 kB / 427.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.348, allocations: 0.5217 MB / 428.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.3511, allocations: 2.593 MB / 430.9 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009493/0.352, allocations: 475.6 kB / 431.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003973/0.3524, allocations: 195.1 kB / 431.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.688e-05/0.3525, allocations: 3.469 kB / 431.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005956/0.3531, allocations: 284.8 kB / 431.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 1.773e-06/0.3531, allocations: 0 / 431.8 MB, free: 34.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001558/0.3547, allocations: 0.7581 MB / 432.6 MB, free: 34.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.284e-05/0.3547, allocations: 145.3 kB / 432.7 MB, free: 34.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005652/0.3553, allocations: 0.5813 MB / 433.3 MB, free: 33.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.77e-05/0.3554, allocations: 37.02 kB / 433.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.3556, allocations: 364.3 kB / 433.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.553e-05/0.3556, allocations: 118.9 kB / 433.8 MB, free: 33.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3558, allocations: 99.41 kB / 433.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.061e-05/0.3559, allocations: 368.3 kB / 434.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004178/0.3563, allocations: 185.2 kB / 434.5 MB, free: 32.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004507/0.3568, allocations: 308.3 kB / 434.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008482/0.3576, allocations: 0.6035 MB / 435.4 MB, free: 32.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3576, allocations: 0.6562 kB / 435.4 MB, free: 32.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001141/0.3588, allocations: 0.676 MB / 436.1 MB, free: 31.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.236e-05/0.3588, allocations: 90.67 kB / 436.1 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3589, allocations: 3.188 kB / 436.1 MB, free: 31.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001514/0.359, allocations: 29.62 kB / 436.2 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/0.3594, allocations: 101.7 kB / 436.3 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000787/0.3602, allocations: 1.381 MB / 437.7 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.3607, allocations: 90.28 kB / 437.7 MB, free: 30.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.943e-05/0.3608, allocations: 25.09 kB / 437.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006054/0.3614, allocations: 345.6 kB / 438.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004086/0.3618, allocations: 288.6 kB / 438.4 MB, free: 30.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007722/0.3626, allocations: 0.5876 MB / 439 MB, free: 29.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.635e-06/0.3626, allocations: 0 / 439 MB, free: 29.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001105/0.3637, allocations: 0.6509 MB / 439.6 MB, free: 29.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.167e-05/0.3638, allocations: 96.84 kB / 439.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3638, allocations: 8.219 kB / 439.7 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.505e-05/0.3639, allocations: 29.33 kB / 439.8 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003476/0.3642, allocations: 91.28 kB / 439.8 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006764/0.3649, allocations: 1.394 MB / 441.2 MB, free: 27.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004586/0.3654, allocations: 69.06 kB / 441.3 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.505e-05/0.3654, allocations: 22.86 kB / 441.3 MB, free: 27.71 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.000187/0.3656, allocations: 270.9 kB / 441.6 MB, free: 27.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.577e-05/0.3657, allocations: 63.48 kB / 441.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.3668, allocations: 0.5354 MB / 442.2 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3668, allocations: 9.703 kB / 442.2 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3668, allocations: 3.562 kB / 442.2 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.3668, allocations: 0 / 442.2 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.3685, allocations: 1.242 MB / 443.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3686, allocations: 0 / 443.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003292/0.3689, allocations: 64.42 kB / 443.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.437e-05/0.369, allocations: 31.05 kB / 443.5 MB, free: 26.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.369, allocations: 7 kB / 443.6 MB, free: 26.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005936/0.3696, allocations: 1.373 MB / 444.9 MB, free: 25.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3696, allocations: 0 / 444.9 MB, free: 25.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.3712, allocations: 0.8538 MB / 445.8 MB, free: 24.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.3715, allocations: 169.2 kB / 445.9 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.538e-05/0.3716, allocations: 7.156 kB / 445.9 MB, free: 24.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004066/0.372, allocations: 46.92 kB / 446 MB, free: 24.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/0.3721, allocations: 46.45 kB / 446 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.3721, allocations: 13.09 kB / 446.1 MB, free: 24.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004779/0.3726, allocations: 412.8 kB / 446.5 MB, free: 24.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3726, allocations: 0 / 446.5 MB, free: 24.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000849/0.3735, allocations: 290.5 kB / 446.7 MB, free: 24.11 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.002864/0.3764, allocations: 1.648 MB / 448.4 MB, free: 23.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.3784, allocations: 1.284 MB / 449.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3785, allocations: 0 / 449.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005846/0.379, allocations: 451.5 kB / 450.1 MB, free: 21.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006473/0.3797, allocations: 96.89 kB / 450.2 MB, free: 21.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007211/0.3869, allocations: 5.587 MB / 455.8 MB, free: 18.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.3873, allocations: 0.9112 MB / 456.7 MB, free: 17.91 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003491/0.3877, allocations: 73.59 kB / 456.8 MB, free: 17.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/0.388, allocations: 244 kB / 457 MB, free: 17.7 MB / 350.1 MB Notification: Performance of SimCode: time 7.81e-07/0.388, allocations: 0 / 457 MB, free: 17.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04823/0.4362, allocations: 13.14 MB / 470.2 MB, free: 16.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.908/10.34, allocations: 4.656 kB / 470.2 MB, free: 16.34 MB / 350.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)