Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.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.TestTwoFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1",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.001194/0.001194, 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.001323/0.001324, allocations: 194.1 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1503/0.1503, allocations: 8.409 MB / 298.8 MB, free: 2.145 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002901/0.002901, allocations: 59.91 kB / 361.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1383, allocations: 51.37 MB / 412.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange1): time 0.009322/0.1477, allocations: 4.437 MB / 417.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004763/0.1525, allocations: 2.106 MB / 419.2 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005318/0.153, allocations: 19.94 kB / 419.2 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005851/0.1537, allocations: 162.7 kB / 419.4 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008851/0.1546, allocations: 222.3 kB / 419.6 MB, free: 3.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1557, allocations: 423 kB / 420 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001428/0.1571, allocations: 0.9469 MB / 421 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001064/0.1582, allocations: 0.516 MB / 421.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006246/0.1589, allocations: 370.7 kB / 421.8 MB, free: 1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005978/0.1595, allocations: 402.3 kB / 422.2 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001477/0.1596, allocations: 108 kB / 422.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000238/0.1599, allocations: 143.9 kB / 422.5 MB, free: 368 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002569/0.1601, allocations: 239.3 kB / 422.7 MB, free: 128 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1637/0.3238, allocations: 469.5 kB / 423.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001516/0.3254, allocations: 1.179 MB / 424.3 MB, free: 37.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3254, allocations: 0.5625 kB / 424.3 MB, free: 37.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3254, allocations: 0 / 424.3 MB, free: 37.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.749e-05/0.3255, allocations: 4.781 kB / 424.3 MB, free: 37.63 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.002437/0.3279, allocations: 1.239 MB / 425.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.328, allocations: 13.98 kB / 425.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.3281, allocations: 113.5 kB / 425.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001712/0.3283, allocations: 99 kB / 425.8 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006711/0.329, allocations: 0.5609 MB / 426.4 MB, free: 36.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.329, allocations: 60.34 kB / 426.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.599e-05/0.3291, allocations: 75.64 kB / 426.5 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.3303, allocations: 0.7429 MB / 427.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.3304, allocations: 0 / 427.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.774e-05/0.3304, allocations: 32.56 kB / 427.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.3305, allocations: 16.8 kB / 427.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.3316, allocations: 0.5271 MB / 427.8 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00318/0.3347, allocations: 2.726 MB / 430.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009347/0.3357, allocations: 474.5 kB / 431 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003697/0.3361, allocations: 187.8 kB / 431.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.3361, allocations: 6.844 kB / 431.2 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005574/0.3367, allocations: 269.7 kB / 431.5 MB, free: 35.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.023e-06/0.3367, allocations: 0 / 431.5 MB, free: 35.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001465/0.3382, allocations: 0.7321 MB / 432.2 MB, free: 35.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.3382, allocations: 141.2 kB / 432.3 MB, free: 34.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006204/0.3388, allocations: 0.6755 MB / 433 MB, free: 34.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.3389, allocations: 36.14 kB / 433 MB, free: 34.63 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.3391, allocations: 388 kB / 433.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.977e-05/0.3391, allocations: 119.7 kB / 433.5 MB, free: 34.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001244/0.3393, allocations: 98.84 kB / 433.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.353e-05/0.3394, allocations: 374.4 kB / 434 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003911/0.3398, allocations: 182.7 kB / 434.2 MB, free: 33.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004075/0.3402, allocations: 304.9 kB / 434.5 MB, free: 33.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007847/0.341, allocations: 0.5881 MB / 435.1 MB, free: 33.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.341, allocations: 3.344 kB / 435.1 MB, free: 33.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001076/0.3421, allocations: 0.6707 MB / 435.7 MB, free: 32.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/0.3421, allocations: 94.2 kB / 435.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.3421, allocations: 3.25 kB / 435.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001472/0.3423, allocations: 24.34 kB / 435.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.3427, allocations: 103.9 kB / 436 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007151/0.3434, allocations: 1.394 MB / 437.4 MB, free: 31.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.3438, allocations: 84.81 kB / 437.4 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.3439, allocations: 22.81 kB / 437.5 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005405/0.3444, allocations: 361.7 kB / 437.8 MB, free: 31.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003854/0.3448, allocations: 284.1 kB / 438.1 MB, free: 30.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007188/0.3456, allocations: 0.5684 MB / 438.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.086e-06/0.3456, allocations: 3.969 kB / 438.7 MB, free: 30.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001/0.3466, allocations: 0.6487 MB / 439.3 MB, free: 30.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.3466, allocations: 92.27 kB / 439.4 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.3466, allocations: 3.219 kB / 439.4 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.362e-05/0.3467, allocations: 25.36 kB / 439.4 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003173/0.347, allocations: 92.78 kB / 439.5 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005818/0.3476, allocations: 1.405 MB / 440.9 MB, free: 28.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000422/0.3481, allocations: 66.38 kB / 441 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.3481, allocations: 26.88 kB / 441 MB, free: 28.56 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.0001535/0.3483, allocations: 269.4 kB / 441.3 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.521e-05/0.3483, allocations: 65.22 kB / 441.3 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.3494, allocations: 0.5307 MB / 441.9 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3494, allocations: 3.281 kB / 441.9 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.3494, allocations: 6.969 kB / 441.9 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3494, allocations: 0 / 441.9 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.351, allocations: 1.272 MB / 443.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.351, allocations: 4 kB / 443.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002968/0.3513, allocations: 61.5 kB / 443.2 MB, free: 27.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.395e-05/0.3514, allocations: 26.75 kB / 443.2 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.3515, allocations: 6.969 kB / 443.3 MB, free: 27.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000581/0.352, allocations: 1.389 MB / 444.6 MB, free: 25.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3521, allocations: 0 / 444.6 MB, free: 25.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001313/0.3534, allocations: 0.826 MB / 445.5 MB, free: 25.41 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001031/0.3535, allocations: 149 kB / 445.6 MB, free: 25.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.055e-05/0.3536, allocations: 11.25 kB / 445.6 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000362/0.3539, allocations: 42.83 kB / 445.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.635e-05/0.354, allocations: 33.91 kB / 445.7 MB, free: 25.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.417e-05/0.3541, allocations: 9.844 kB / 445.7 MB, free: 25.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004548/0.3545, allocations: 492.8 kB / 446.2 MB, free: 25.05 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.243e-06/0.3545, allocations: 0 / 446.2 MB, free: 25.05 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000743/0.3553, allocations: 310.3 kB / 446.5 MB, free: 24.96 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.00257/0.3579, allocations: 1.639 MB / 448.1 MB, free: 23.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001855/0.3597, allocations: 1.279 MB / 449.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3598, allocations: 1.062 kB / 449.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005305/0.3603, allocations: 453.2 kB / 449.9 MB, free: 22.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005997/0.3609, allocations: 87.78 kB / 449.9 MB, free: 22.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007429/0.3683, allocations: 6.332 MB / 456.3 MB, free: 19.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000372/0.3687, allocations: 0.9313 MB / 457.2 MB, free: 18.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003051/0.3691, allocations: 74.09 kB / 457.3 MB, free: 18.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.3694, allocations: 265.7 kB / 457.5 MB, free: 18.28 MB / 350.1 MB Notification: Performance of SimCode: time 1.323e-06/0.3694, allocations: 0 / 457.5 MB, free: 18.28 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05763/0.427, allocations: 14.08 MB / 471.6 MB, free: 16.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.56, allocations: 11.09 kB / 471.6 MB, free: 16.83 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1_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_TestTwoFlange1.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe 2>&1)