Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.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.TestTwoFlange2,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange2,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2",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.001374/0.001374, 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.001587/0.001587, allocations: 192.1 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.436/1.436, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1637/0.1637, allocations: 8.948 MB / 299.3 MB, free: 1.996 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 75.88 kB / 361.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1044, allocations: 51.48 MB / 413.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange2): time 0.00699/0.1114, allocations: 4.43 MB / 417.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003873/0.1154, allocations: 2.114 MB / 420 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005138/0.1159, allocations: 15.94 kB / 420 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004673/0.1164, allocations: 162.7 kB / 420.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006342/0.1171, allocations: 230.3 kB / 420.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008185/0.118, allocations: 418.4 kB / 420.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.119, allocations: 0.9664 MB / 421.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007275/0.1197, allocations: 0.5043 MB / 422.2 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004958/0.1203, allocations: 378.6 kB / 422.6 MB, free: 208 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1858/0.3061, allocations: 409.8 kB / 423 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000304/0.3064, allocations: 111.2 kB / 423.1 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003686/0.3068, allocations: 154.6 kB / 423.3 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002575/0.3071, allocations: 249.1 kB / 423.5 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004245/0.3075, allocations: 476.2 kB / 424 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001154/0.3087, allocations: 1.209 MB / 425.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.3087, allocations: 0.7812 kB / 425.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3087, allocations: 3.938 kB / 425.2 MB, free: 37.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.3087, allocations: 0.8438 kB / 425.2 MB, free: 37.27 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.001848/0.3106, allocations: 1.243 MB / 426.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.3106, allocations: 15.92 kB / 426.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.3107, allocations: 115.5 kB / 426.6 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.3109, allocations: 95.34 kB / 426.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006131/0.3115, allocations: 0.5728 MB / 427.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.997e-05/0.3115, allocations: 56.5 kB / 427.3 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.988e-05/0.3116, allocations: 76.31 kB / 427.4 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00123/0.3129, allocations: 0.7448 MB / 428.1 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.3129, allocations: 3.219 kB / 428.1 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.426e-05/0.313, allocations: 29.02 kB / 428.1 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.313, allocations: 19.12 kB / 428.1 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.3141, allocations: 0.5269 MB / 428.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003537/0.3176, allocations: 2.734 MB / 431.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009143/0.3186, allocations: 472.7 kB / 431.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003744/0.319, allocations: 186 kB / 432.1 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.319, allocations: 7.219 kB / 432.1 MB, free: 34.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005621/0.3196, allocations: 275.4 kB / 432.3 MB, free: 34.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.264e-06/0.3196, allocations: 0 / 432.3 MB, free: 34.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001558/0.3212, allocations: 0.7365 MB / 433.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.3212, allocations: 165 kB / 433.2 MB, free: 34.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007233/0.322, allocations: 0.6906 MB / 433.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.322, allocations: 32.95 kB / 434 MB, free: 33.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000206/0.3222, allocations: 385.2 kB / 434.3 MB, free: 33.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.31e-05/0.3223, allocations: 120.2 kB / 434.4 MB, free: 33.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.3224, allocations: 95.53 kB / 434.5 MB, free: 33.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.377e-05/0.3225, allocations: 375.2 kB / 434.9 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.323, allocations: 184.7 kB / 435.1 MB, free: 33.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004448/0.3234, allocations: 312.3 kB / 435.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008225/0.3242, allocations: 0.5934 MB / 436 MB, free: 32.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3243, allocations: 0 / 436 MB, free: 32.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00112/0.3254, allocations: 0.6802 MB / 436.7 MB, free: 32.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.769e-05/0.3254, allocations: 91.89 kB / 436.8 MB, free: 32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3255, allocations: 2.656 kB / 436.8 MB, free: 32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001559/0.3256, allocations: 25.69 kB / 436.8 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.326, allocations: 101.5 kB / 436.9 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007226/0.3267, allocations: 1.397 MB / 438.3 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004463/0.3272, allocations: 83.3 kB / 438.4 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.3272, allocations: 21.22 kB / 438.4 MB, free: 30.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006062/0.3278, allocations: 361.8 kB / 438.7 MB, free: 30.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003969/0.3282, allocations: 296.4 kB / 439 MB, free: 30.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007406/0.329, allocations: 0.5771 MB / 439.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.093e-06/0.329, allocations: 0 / 439.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001016/0.33, allocations: 0.6494 MB / 440.2 MB, free: 29.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.3301, allocations: 90.8 kB / 440.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3301, allocations: 6.25 kB / 440.3 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.487e-05/0.3302, allocations: 24.23 kB / 440.4 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003132/0.3305, allocations: 96.2 kB / 440.5 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006094/0.3311, allocations: 1.405 MB / 441.9 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004254/0.3315, allocations: 67.55 kB / 441.9 MB, free: 27.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.3316, allocations: 17.38 kB / 441.9 MB, free: 27.82 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: 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 (55): * Single equations (assignments): 51 * 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.0001605/0.3317, allocations: 276.6 kB / 442.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.3318, allocations: 66.91 kB / 442.3 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001003/0.3328, allocations: 0.5372 MB / 442.8 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3328, allocations: 3.344 kB / 442.8 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.3329, allocations: 0 / 442.8 MB, free: 27.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.3329, allocations: 4 kB / 442.8 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.3345, allocations: 1.278 MB / 444.1 MB, free: 26.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-06/0.3346, allocations: 6.875 kB / 444.1 MB, free: 26.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002938/0.3348, allocations: 67.25 kB / 444.2 MB, free: 26.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.314e-05/0.3349, allocations: 22.12 kB / 444.2 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.089e-05/0.335, allocations: 7.312 kB / 444.2 MB, free: 26.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006557/0.3356, allocations: 1.384 MB / 445.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3357, allocations: 1.375 kB / 445.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.337, allocations: 0.827 MB / 446.4 MB, free: 24.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.3372, allocations: 148.9 kB / 446.6 MB, free: 24.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.412e-05/0.3373, allocations: 10.06 kB / 446.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003748/0.3376, allocations: 46.42 kB / 446.6 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3378, allocations: 34.66 kB / 446.7 MB, free: 24.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.3378, allocations: 6.156 kB / 446.7 MB, free: 24.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005376/0.3383, allocations: 499.5 kB / 447.1 MB, free: 24.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3383, allocations: 4 kB / 447.2 MB, free: 24.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008487/0.3392, allocations: 320.9 kB / 447.5 MB, free: 24.2 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,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 (32): * Single equations (assignments): 27 * 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.002905/0.3421, allocations: 1.68 MB / 449.1 MB, free: 23.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002162/0.3443, allocations: 1.292 MB / 450.4 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3443, allocations: 0 / 450.4 MB, free: 22.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006353/0.3449, allocations: 442 kB / 450.9 MB, free: 22.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000794/0.3457, allocations: 99.11 kB / 451 MB, free: 21.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008289/0.354, allocations: 6.36 MB / 457.3 MB, free: 18.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004568/0.3545, allocations: 0.9339 MB / 458.3 MB, free: 17.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003791/0.3549, allocations: 72.59 kB / 458.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/0.3553, allocations: 265.5 kB / 458.6 MB, free: 17.48 MB / 350.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3553, allocations: 0 / 458.6 MB, free: 17.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05551/0.4108, allocations: 14.46 MB / 473.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.57, allocations: 7.656 kB / 473.1 MB, free: 15.96 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe 2>&1)