Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.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.TestTwoFlange,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestTwoFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestTwoFlange",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.005069/0.00507, allocations: 102.7 kB / 15.73 MB, free: 6.039 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.001241/0.001241, allocations: 199.3 kB / 16.68 MB, free: 5.973 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1753/0.1753, allocations: 8.027 MB / 298.6 MB, free: 2.375 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 59.91 kB / 412.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2736, allocations: 51.2 MB / 463.8 MB, free: 17.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.005817/0.2795, allocations: 4.283 MB / 468.1 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00338/0.2829, allocations: 1.468 MB / 469.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008236/0.2838, allocations: 11.12 kB / 469.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005711/0.2844, allocations: 159.5 kB / 469.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008014/0.2852, allocations: 212.4 kB / 469.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009657/0.2862, allocations: 400.4 kB / 470.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009225/0.2871, allocations: 0.8905 MB / 471.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006933/0.2878, allocations: 481.9 kB / 471.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004521/0.2883, allocations: 347.5 kB / 472 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004658/0.2888, allocations: 380.9 kB / 472.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.2889, allocations: 100.8 kB / 472.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002477/0.2892, allocations: 133.3 kB / 472.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002217/0.2894, allocations: 216.9 kB / 472.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.2898, allocations: 433.2 kB / 473.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001127/0.2909, allocations: 1.095 MB / 474.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2909, allocations: 0 / 474.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.2909, allocations: 0 / 474.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.2909, allocations: 0 / 474.3 MB, free: 11.38 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001888/0.2928, allocations: 1.153 MB / 475.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.2929, allocations: 10.56 kB / 475.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.293, allocations: 110.5 kB / 475.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.2931, allocations: 86.53 kB / 475.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007011/0.2939, allocations: 0.5217 MB / 476.2 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.225e-05/0.2939, allocations: 55.53 kB / 476.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.294, allocations: 71.94 kB / 476.3 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.2953, allocations: 0.7023 MB / 477 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.2953, allocations: 5.766 kB / 477 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.806e-05/0.2954, allocations: 31.97 kB / 477.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.2954, allocations: 15.69 kB / 477.1 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.2965, allocations: 0.4982 MB / 477.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003552/0.3001, allocations: 2.535 MB / 480.1 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009636/0.3011, allocations: 446.1 kB / 480.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003663/0.3015, allocations: 180.4 kB / 480.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.768e-05/0.3015, allocations: 8.016 kB / 480.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005251/0.3021, allocations: 259.1 kB / 481 MB, free: 7.043 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.725e-06/0.3021, allocations: 7.922 kB / 481 MB, free: 7.035 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00154/0.3036, allocations: 0.7189 MB / 481.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.3037, allocations: 134.6 kB / 481.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007283/0.3044, allocations: 0.5764 MB / 482.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.147e-05/0.3045, allocations: 38.25 kB / 482.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.3047, allocations: 349.9 kB / 482.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.283e-05/0.3048, allocations: 117.1 kB / 482.9 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000133/0.3049, allocations: 79.66 kB / 483 MB, free: 5.582 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.077e-05/0.305, allocations: 367.8 kB / 483.3 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003993/0.3054, allocations: 170.8 kB / 483.5 MB, free: 5.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004229/0.3059, allocations: 262 kB / 483.8 MB, free: 4.934 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008234/0.3067, allocations: 0.5463 MB / 484.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3067, allocations: 0.9688 kB / 484.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001158/0.3079, allocations: 0.6036 MB / 484.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.687e-05/0.3079, allocations: 86.36 kB / 485 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.3079, allocations: 3.125 kB / 485 MB, free: 4.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001798/0.3081, allocations: 30.31 kB / 485 MB, free: 4.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003382/0.3085, allocations: 88.53 kB / 485.1 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008364/0.3093, allocations: 1.392 MB / 486.5 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.3098, allocations: 75.05 kB / 486.6 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.3099, allocations: 17.75 kB / 486.6 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005457/0.3104, allocations: 326.3 kB / 486.9 MB, free: 2.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003602/0.3108, allocations: 247.7 kB / 487.2 MB, free: 2.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007596/0.3116, allocations: 0.5176 MB / 487.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.915e-06/0.3116, allocations: 1.062 kB / 487.7 MB, free: 1.652 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.001109/0.3127, allocations: 0.5819 MB / 488.3 MB, free: 1.289 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.952e-05/0.3127, allocations: 96.19 kB / 488.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.3128, allocations: 3.281 kB / 488.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.469e-05/0.3129, allocations: 22.25 kB / 488.4 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.3132, allocations: 77.23 kB / 488.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008699/0.314, allocations: 1.389 MB / 489.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.3145, allocations: 70.95 kB / 489.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.3145, allocations: 18.25 kB / 489.9 MB, free: 15.67 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 (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 (45): * Single equations (assignments): 41 * 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.0002489/0.3148, allocations: 270.1 kB / 490.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.235e-05/0.3149, allocations: 58.5 kB / 490.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.316, allocations: 0.5066 MB / 490.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3161, allocations: 10.62 kB / 490.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.3161, allocations: 0 / 490.8 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.3161, allocations: 5.359 kB / 490.8 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.3182, allocations: 1.181 MB / 492 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3182, allocations: 3.938 kB / 492 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003049/0.3185, allocations: 63.7 kB / 492 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.714e-05/0.3186, allocations: 26.72 kB / 492 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.812e-05/0.3186, allocations: 8.156 kB / 492.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.3198, allocations: 1.389 MB / 493.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3198, allocations: 0 / 493.4 MB, free: 12.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001619/0.3214, allocations: 0.7934 MB / 494.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.3216, allocations: 141.9 kB / 494.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.723e-05/0.3217, allocations: 8.25 kB / 494.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003756/0.3221, allocations: 45.58 kB / 494.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002049/0.3223, allocations: 33.08 kB / 494.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.3223, allocations: 12.03 kB / 494.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006407/0.323, allocations: 421.5 kB / 494.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.323, allocations: 0 / 494.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009762/0.324, allocations: 288.2 kB / 495.2 MB, free: 11.64 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,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 (30): * Single equations (assignments): 25 * 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.002633/0.3266, allocations: 1.592 MB / 496.8 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002211/0.3289, allocations: 1.191 MB / 498 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.3289, allocations: 1.5 kB / 498 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007228/0.3296, allocations: 438.9 kB / 498.4 MB, free: 9.242 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.3303, allocations: 86.36 kB / 498.5 MB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008434/0.3387, allocations: 5.456 MB / 0.4921 GB, free: 3.914 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.3393, allocations: 0.9056 MB / 0.493 GB, free: 2.977 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000282/0.3396, allocations: 68.08 kB / 0.4931 GB, free: 2.906 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.3399, allocations: 227.4 kB / 0.4933 GB, free: 2.688 MB / 366.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3399, allocations: 0 / 0.4933 GB, free: 2.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03876/0.3787, allocations: 13.2 MB / 0.5062 GB, free: 5.625 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.27/10.65, allocations: 4.812 kB / 0.5062 GB, free: 5.621 MB / 382.1 MB (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_EHPTlib_MapBased_TestingModels_TestTwoFlange_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)