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 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-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.001319/0.001319, 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.001278/0.001278, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.429/1.429, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1507/0.1507, allocations: 8.409 MB / 298.8 MB, free: 2.191 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002083/0.002084, allocations: 67.88 kB / 361.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.102, allocations: 51.37 MB / 412.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange2): time 0.006454/0.1085, allocations: 4.417 MB / 417.1 MB, free: 5.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003643/0.1121, allocations: 2.122 MB / 419.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000571/0.1127, allocations: 15.94 kB / 419.2 MB, free: 3.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005701/0.1134, allocations: 162.7 kB / 419.4 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007583/0.1142, allocations: 222.3 kB / 419.6 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.1152, allocations: 427 kB / 420 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001185/0.1164, allocations: 0.9548 MB / 421 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000803/0.1172, allocations: 0.516 MB / 421.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005599/0.1178, allocations: 374.6 kB / 421.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005292/0.1183, allocations: 406.3 kB / 422.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.1184, allocations: 116 kB / 422.3 MB, free: 460 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002621/0.1187, allocations: 163.9 kB / 422.5 MB, free: 296 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002557/0.119, allocations: 251.3 kB / 422.8 MB, free: 44 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1581/0.277, allocations: 464.7 kB / 423.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00131/0.2784, allocations: 1.21 MB / 424.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2784, allocations: 0.875 kB / 424.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2784, allocations: 1.969 kB / 424.4 MB, free: 37.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.2785, allocations: 0 / 424.4 MB, free: 37.52 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.001896/0.2804, allocations: 1.247 MB / 425.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.2804, allocations: 12.08 kB / 425.7 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001095/0.2805, allocations: 117.2 kB / 425.8 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.2807, allocations: 95.84 kB / 425.9 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005827/0.2813, allocations: 0.5695 MB / 426.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.465e-05/0.2813, allocations: 56.78 kB / 426.5 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.001e-05/0.2814, allocations: 78.22 kB / 426.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001145/0.2826, allocations: 0.7422 MB / 427.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.2826, allocations: 3.406 kB / 427.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.903e-05/0.2827, allocations: 33.19 kB / 427.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.2827, allocations: 18.5 kB / 427.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.2838, allocations: 0.5231 MB / 427.9 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003356/0.2872, allocations: 2.746 MB / 430.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009197/0.2881, allocations: 468 kB / 431.1 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.2885, allocations: 190.3 kB / 431.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.982e-05/0.2886, allocations: 3.875 kB / 431.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005808/0.2891, allocations: 272.6 kB / 431.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.004e-06/0.2892, allocations: 0 / 431.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001547/0.2907, allocations: 0.7389 MB / 432.3 MB, free: 34.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.2908, allocations: 160.9 kB / 432.5 MB, free: 34.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006715/0.2915, allocations: 0.6866 MB / 433.2 MB, free: 34.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.2915, allocations: 40.08 kB / 433.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001913/0.2917, allocations: 380.9 kB / 433.6 MB, free: 34.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.409e-05/0.2918, allocations: 124.3 kB / 433.7 MB, free: 34.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.2919, allocations: 94.7 kB / 433.8 MB, free: 34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.442e-05/0.292, allocations: 378.9 kB / 434.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003954/0.2924, allocations: 186 kB / 434.3 MB, free: 33.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004157/0.2928, allocations: 311.8 kB / 434.6 MB, free: 33.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007987/0.2936, allocations: 0.5982 MB / 435.2 MB, free: 32.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.2936, allocations: 0 / 435.2 MB, free: 32.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001106/0.2948, allocations: 0.6751 MB / 435.9 MB, free: 32.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.499e-05/0.2948, allocations: 90.64 kB / 436 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.2948, allocations: 7.25 kB / 436 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001542/0.295, allocations: 28.16 kB / 436 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003468/0.2953, allocations: 94.5 kB / 436.1 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007061/0.2961, allocations: 1.397 MB / 437.5 MB, free: 31.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004358/0.2965, allocations: 95.38 kB / 437.6 MB, free: 31.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.2965, allocations: 19.81 kB / 437.6 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000533/0.2971, allocations: 362.4 kB / 438 MB, free: 30.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003971/0.2975, allocations: 291.1 kB / 438.3 MB, free: 30.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007138/0.2982, allocations: 0.5754 MB / 438.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.535e-06/0.2982, allocations: 0 / 438.8 MB, free: 30.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.0009918/0.2992, allocations: 0.6486 MB / 439.5 MB, free: 29.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.2993, allocations: 98.27 kB / 439.6 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2993, allocations: 3.25 kB / 439.6 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.309e-05/0.2994, allocations: 25.19 kB / 439.6 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003062/0.2997, allocations: 96.84 kB / 439.7 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000582/0.3003, allocations: 1.393 MB / 441.1 MB, free: 28.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004214/0.3007, allocations: 70.53 kB / 441.2 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.124e-05/0.3007, allocations: 19.84 kB / 441.2 MB, free: 28.35 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.0001559/0.3009, allocations: 273.8 kB / 441.5 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.867e-05/0.301, allocations: 64.34 kB / 441.5 MB, free: 28.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.302, allocations: 0.5359 MB / 442.1 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.302, allocations: 3.062 kB / 442.1 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.302, allocations: 0 / 442.1 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.302, allocations: 3.281 kB / 442.1 MB, free: 27.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.3036, allocations: 1.284 MB / 443.3 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3036, allocations: 0 / 443.3 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002924/0.3039, allocations: 67.67 kB / 443.4 MB, free: 27.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.504e-05/0.304, allocations: 22.08 kB / 443.4 MB, free: 27.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.893e-05/0.304, allocations: 15.25 kB / 443.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005637/0.3046, allocations: 1.38 MB / 444.8 MB, free: 25.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3046, allocations: 4.062 kB / 444.8 MB, free: 25.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001353/0.306, allocations: 0.8248 MB / 445.7 MB, free: 25.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.3061, allocations: 146.6 kB / 445.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.322e-05/0.3062, allocations: 13.41 kB / 445.8 MB, free: 25.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003742/0.3066, allocations: 42.8 kB / 445.9 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.841e-05/0.3067, allocations: 33.12 kB / 445.9 MB, free: 25.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.649e-05/0.3067, allocations: 16.98 kB / 445.9 MB, free: 25.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004555/0.3072, allocations: 493 kB / 446.4 MB, free: 24.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3072, allocations: 0.75 kB / 446.4 MB, free: 24.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008001/0.308, allocations: 320.2 kB / 446.7 MB, free: 24.73 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.002751/0.3107, allocations: 1.677 MB / 448.4 MB, free: 23.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.3126, allocations: 1.281 MB / 449.7 MB, free: 22.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3126, allocations: 0 / 449.7 MB, free: 22.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005605/0.3132, allocations: 454.5 kB / 450.1 MB, free: 22.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006641/0.3139, allocations: 97.94 kB / 450.2 MB, free: 22.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007691/0.3216, allocations: 6.356 MB / 456.6 MB, free: 18.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.322, allocations: 0.9357 MB / 457.5 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002686/0.3223, allocations: 76.98 kB / 457.6 MB, free: 18.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.3226, allocations: 265.8 kB / 457.8 MB, free: 18.02 MB / 350.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3226, allocations: 0 / 457.8 MB, free: 18.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04925/0.3718, allocations: 14.46 MB / 472.3 MB, free: 16.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.58, allocations: 4.078 kB / 472.3 MB, free: 16.5 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 & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe 2>&1)