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.00141/0.00141, 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.00176/0.00176, allocations: 194.6 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.39/1.39, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1621/0.1621, allocations: 8.027 MB / 298.4 MB, free: 2.383 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 63.91 kB / 360.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1084, allocations: 51.19 MB / 411.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.005888/0.1143, allocations: 4.286 MB / 416.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.117, allocations: 1.465 MB / 417.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003379/0.1173, allocations: 12 kB / 417.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004611/0.1178, allocations: 154.8 kB / 417.8 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005422/0.1184, allocations: 214.4 kB / 418.1 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000721/0.1191, allocations: 394.9 kB / 418.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007921/0.1199, allocations: 0.8845 MB / 419.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005759/0.1205, allocations: 483.7 kB / 419.8 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.1209, allocations: 338.8 kB / 420.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003871/0.1213, allocations: 386.4 kB / 420.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.1214, allocations: 100 kB / 420.6 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002016/0.1216, allocations: 132 kB / 420.7 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002065/0.1218, allocations: 215.4 kB / 420.9 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003562/0.1222, allocations: 430 kB / 421.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009666/0.1231, allocations: 1.071 MB / 422.4 MB, free: 388 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1232, allocations: 0 / 422.4 MB, free: 388 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1232, allocations: 0 / 422.4 MB, free: 388 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.1232, allocations: 3.938 kB / 422.4 MB, free: 384 kB / 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.1885/0.3117, allocations: 1.146 MB / 423.6 MB, free: 44.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.05e-05/0.3118, allocations: 10.27 kB / 423.6 MB, free: 44.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001122/0.3119, allocations: 114.9 kB / 423.7 MB, free: 44.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.312, allocations: 82.72 kB / 423.8 MB, free: 44.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006143/0.3127, allocations: 0.5146 MB / 424.3 MB, free: 43.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.3127, allocations: 52.56 kB / 424.3 MB, free: 43.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.941e-05/0.3128, allocations: 72.53 kB / 424.4 MB, free: 43.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001164/0.314, allocations: 0.7024 MB / 425.1 MB, free: 43.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.349e-05/0.314, allocations: 8.531 kB / 425.1 MB, free: 43.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.488e-05/0.3141, allocations: 28.78 kB / 425.2 MB, free: 43.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.3141, allocations: 17.38 kB / 425.2 MB, free: 43.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001053/0.3151, allocations: 0.5036 MB / 425.7 MB, free: 43.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002996/0.3182, allocations: 2.569 MB / 428.2 MB, free: 42.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000871/0.319, allocations: 442.6 kB / 428.7 MB, free: 42.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003685/0.3194, allocations: 178.7 kB / 428.9 MB, free: 42.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.3195, allocations: 9.938 kB / 428.9 MB, free: 42.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005711/0.32, allocations: 256.9 kB / 429.1 MB, free: 41.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.743e-06/0.3201, allocations: 0 / 429.1 MB, free: 41.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001481/0.3215, allocations: 0.7156 MB / 429.8 MB, free: 41.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/0.3216, allocations: 139.8 kB / 430 MB, free: 41.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.3221, allocations: 0.5763 MB / 430.5 MB, free: 41.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.3221, allocations: 38.31 kB / 430.6 MB, free: 41.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001678/0.3223, allocations: 354.8 kB / 430.9 MB, free: 40.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.561e-05/0.3224, allocations: 113.1 kB / 431 MB, free: 40.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.3225, allocations: 76.7 kB / 431.1 MB, free: 40.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.206e-05/0.3226, allocations: 367.6 kB / 431.5 MB, free: 40.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003749/0.323, allocations: 165.5 kB / 431.6 MB, free: 40.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003927/0.3234, allocations: 266.9 kB / 431.9 MB, free: 40.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007614/0.3241, allocations: 0.5407 MB / 432.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.676e-06/0.3242, allocations: 2.875 kB / 432.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001037/0.3252, allocations: 0.6066 MB / 433 MB, free: 39.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.208e-05/0.3252, allocations: 93.09 kB / 433.1 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3253, allocations: 3.031 kB / 433.1 MB, free: 39.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001409/0.3254, allocations: 23.83 kB / 433.2 MB, free: 39.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003156/0.3257, allocations: 83.28 kB / 433.2 MB, free: 39.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007614/0.3265, allocations: 1.387 MB / 434.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/0.3269, allocations: 82.42 kB / 434.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.327, allocations: 25.39 kB / 434.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005047/0.3275, allocations: 326.3 kB / 435.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003717/0.3279, allocations: 245.1 kB / 435.3 MB, free: 37.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007244/0.3286, allocations: 0.5335 MB / 435.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.873e-06/0.3286, allocations: 4 kB / 435.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0009641/0.3296, allocations: 0.5713 MB / 436.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.3296, allocations: 93.97 kB / 436.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.3297, allocations: 6 kB / 436.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.929e-05/0.3297, allocations: 28.42 kB / 436.5 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002823/0.33, allocations: 80.53 kB / 436.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006172/0.3307, allocations: 1.391 MB / 438 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003918/0.3311, allocations: 62.77 kB / 438.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.3311, allocations: 19.81 kB / 438.1 MB, free: 35.33 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.000145/0.3312, allocations: 269.8 kB / 438.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.834e-05/0.3313, allocations: 50.66 kB / 438.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009944/0.3323, allocations: 0.5104 MB / 438.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.028e-06/0.3323, allocations: 6.5 kB / 438.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.856e-06/0.3323, allocations: 0 / 438.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.3324, allocations: 3.938 kB / 438.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001585/0.3339, allocations: 1.191 MB / 440.1 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.334, allocations: 3.938 kB / 440.1 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002834/0.3343, allocations: 55.5 kB / 440.2 MB, free: 34.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-05/0.3343, allocations: 21.78 kB / 440.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.3344, allocations: 17.14 kB / 440.2 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005703/0.3349, allocations: 1.38 MB / 441.6 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.335, allocations: 0 / 441.6 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.3363, allocations: 0.7929 MB / 442.4 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.838e-05/0.3364, allocations: 138.7 kB / 442.5 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.536e-05/0.3364, allocations: 14.53 kB / 442.5 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.3368, allocations: 46.33 kB / 442.6 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.432e-05/0.3369, allocations: 30.91 kB / 442.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.3369, allocations: 7.344 kB / 442.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003686/0.3373, allocations: 425.3 kB / 443 MB, free: 31.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.002e-06/0.3373, allocations: 0 / 443 MB, free: 31.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000697/0.338, allocations: 293.4 kB / 443.3 MB, free: 31.83 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.002236/0.3403, allocations: 1.594 MB / 444.9 MB, free: 30.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.342, allocations: 1.199 MB / 446.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3421, allocations: 0 / 446.1 MB, free: 30.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005391/0.3426, allocations: 436.9 kB / 446.5 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005411/0.3432, allocations: 92.66 kB / 446.6 MB, free: 29.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006594/0.3498, allocations: 5.608 MB / 452.2 MB, free: 26.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003535/0.3502, allocations: 0.9054 MB / 453.1 MB, free: 25.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002702/0.3504, allocations: 59.28 kB / 453.2 MB, free: 25.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002771/0.3507, allocations: 236.6 kB / 453.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3507, allocations: 0 / 453.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04376/0.3945, allocations: 12.9 MB / 466.3 MB, free: 24.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.309/9.704, allocations: 8.875 kB / 466.3 MB, free: 24.17 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 & python3 -m fmpy simulate --output-file EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 EHPTlib_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)