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.001185/0.001185, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001168/0.001169, allocations: 199.2 kB / 16.14 MB, free: 6.688 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.251/1.251, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1413/0.1413, allocations: 8.02 MB / 298 MB, free: 2.465 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 59.91 kB / 360.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08539/0.08657, allocations: 51.2 MB / 411.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.005521/0.09212, allocations: 4.312 MB / 415.6 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.09422, allocations: 1.442 MB / 417 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002339/0.09447, allocations: 15.94 kB / 417 MB, free: 5.684 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003609/0.09486, allocations: 123.3 kB / 417.1 MB, free: 5.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003829/0.09525, allocations: 174.9 kB / 417.3 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005461/0.0958, allocations: 347.6 kB / 417.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006487/0.09646, allocations: 0.8063 MB / 418.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005007/0.09697, allocations: 430.8 kB / 418.9 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.09724, allocations: 286.8 kB / 419.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000312/0.09756, allocations: 354.4 kB / 419.5 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.754e-05/0.09765, allocations: 56 kB / 419.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.0978, allocations: 83.98 kB / 419.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.09798, allocations: 179.3 kB / 419.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002936/0.09828, allocations: 370 kB / 420.2 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008058/0.09909, allocations: 1.032 MB / 421.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.09911, allocations: 3.938 kB / 421.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.09911, allocations: 0 / 421.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.103e-05/0.09913, allocations: 0 / 421.2 MB, free: 1.457 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.001739/0.1009, allocations: 1.155 MB / 422.4 MB, free: 240 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.1009, allocations: 8.031 kB / 422.4 MB, free: 232 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.101, allocations: 122.7 kB / 422.5 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.1012, allocations: 87.91 kB / 422.6 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1354/0.2366, allocations: 0.501 MB / 423.1 MB, free: 44.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.651e-05/0.2366, allocations: 56.44 kB / 423.1 MB, free: 44.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.2367, allocations: 72.91 kB / 423.2 MB, free: 44.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/0.238, allocations: 0.7035 MB / 423.9 MB, free: 44.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.217e-05/0.238, allocations: 3.125 kB / 423.9 MB, free: 44.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.461e-05/0.2381, allocations: 33.25 kB / 424 MB, free: 44.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.184e-05/0.2381, allocations: 17.47 kB / 424 MB, free: 44.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.2391, allocations: 0.4989 MB / 424.5 MB, free: 44.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002858/0.242, allocations: 2.567 MB / 427 MB, free: 42.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008107/0.2428, allocations: 442.2 kB / 427.5 MB, free: 42.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003562/0.2432, allocations: 176.1 kB / 427.6 MB, free: 42.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.2432, allocations: 6.828 kB / 427.6 MB, free: 42.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005439/0.2438, allocations: 262.5 kB / 427.9 MB, free: 42.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.603e-06/0.2438, allocations: 0 / 427.9 MB, free: 42.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001331/0.2451, allocations: 0.714 MB / 428.6 MB, free: 42.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.2452, allocations: 138.6 kB / 428.8 MB, free: 41.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004701/0.2456, allocations: 0.568 MB / 429.3 MB, free: 41.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/0.2457, allocations: 36.92 kB / 429.4 MB, free: 41.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.2458, allocations: 359.2 kB / 429.7 MB, free: 41.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.2459, allocations: 109.2 kB / 429.8 MB, free: 41.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.246, allocations: 76.84 kB / 429.9 MB, free: 41.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.698e-05/0.2461, allocations: 372.6 kB / 430.3 MB, free: 40.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003937/0.2465, allocations: 162.8 kB / 430.4 MB, free: 40.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003955/0.2469, allocations: 261.8 kB / 430.7 MB, free: 40.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007025/0.2476, allocations: 0.5494 MB / 431.2 MB, free: 40.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2476, allocations: 0 / 431.2 MB, free: 40.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009566/0.2486, allocations: 0.6001 MB / 431.8 MB, free: 40.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.2486, allocations: 95 kB / 431.9 MB, free: 39.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2486, allocations: 3.625 kB / 431.9 MB, free: 39.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001385/0.2488, allocations: 29.08 kB / 431.9 MB, free: 39.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003007/0.2491, allocations: 87.08 kB / 432 MB, free: 39.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006433/0.2497, allocations: 1.293 MB / 433.3 MB, free: 38.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003934/0.2501, allocations: 84.59 kB / 433.4 MB, free: 38.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.282e-05/0.2502, allocations: 17.78 kB / 433.4 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004519/0.2506, allocations: 321.3 kB / 433.7 MB, free: 38.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003375/0.251, allocations: 256.5 kB / 434 MB, free: 38.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006474/0.2517, allocations: 0.5242 MB / 434.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.783e-06/0.2517, allocations: 7.188 kB / 434.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0008877/0.2526, allocations: 0.5812 MB / 435.1 MB, free: 37.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.2526, allocations: 90.11 kB / 435.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.2526, allocations: 3.188 kB / 435.2 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.782e-05/0.2527, allocations: 25.12 kB / 435.2 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.2529, allocations: 75.7 kB / 435.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005652/0.2535, allocations: 1.286 MB / 436.6 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003718/0.2539, allocations: 68.8 kB / 436.6 MB, free: 36.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.2539, allocations: 23.58 kB / 436.7 MB, free: 36.09 MB / 350.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.0001422/0.2541, allocations: 269.9 kB / 436.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.633e-05/0.2542, allocations: 51.94 kB / 437 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000931/0.2551, allocations: 0.5132 MB / 437.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.2551, allocations: 3.156 kB / 437.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.2551, allocations: 0 / 437.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.2551, allocations: 1.938 kB / 437.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.2566, allocations: 1.199 MB / 438.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2566, allocations: 0 / 438.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.2569, allocations: 58.81 kB / 438.7 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.751e-05/0.257, allocations: 22.11 kB / 438.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.257, allocations: 10.77 kB / 438.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005636/0.2576, allocations: 1.282 MB / 440.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2576, allocations: 3.938 kB / 440.1 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.2588, allocations: 0.794 MB / 440.9 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.035e-05/0.2589, allocations: 138.7 kB / 441 MB, free: 32.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.305e-05/0.259, allocations: 17.58 kB / 441 MB, free: 32.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003469/0.2593, allocations: 38.12 kB / 441.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.677e-05/0.2595, allocations: 34.44 kB / 441.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.2595, allocations: 14.03 kB / 441.1 MB, free: 32.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003469/0.2598, allocations: 418.3 kB / 441.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2598, allocations: 4 kB / 441.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.2605, allocations: 290 kB / 441.8 MB, free: 32.7 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 (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.001985/0.2625, allocations: 1.596 MB / 443.4 MB, free: 31.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001527/0.2641, allocations: 1.184 MB / 444.6 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2641, allocations: 0 / 444.6 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004858/0.2646, allocations: 448.8 kB / 445 MB, free: 30.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004981/0.2651, allocations: 78.22 kB / 445.1 MB, free: 30.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00628/0.2714, allocations: 5.872 MB / 451 MB, free: 27.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.2717, allocations: 0.9025 MB / 451.9 MB, free: 26.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002387/0.2719, allocations: 66.2 kB / 451.9 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002362/0.2722, allocations: 229.4 kB / 452.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2722, allocations: 0 / 452.2 MB, free: 26.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02176/0.2939, allocations: 12.26 MB / 464.4 MB, free: 24.91 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001281/0.2941, allocations: 258.5 kB / 464.7 MB, free: 24.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.215, allocations: 0 / 464.7 MB, free: 24.65 MB / 350.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)