Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_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_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange,fileNamePrefix="EHPTlib_latest_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.001179/0.001179, 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.001345/0.001345, allocations: 193.7 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.409/1.409, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1449/0.1449, allocations: 8.019 MB / 298.4 MB, free: 2.402 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 360.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1189, allocations: 51.2 MB / 411.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.006021/0.1249, allocations: 4.294 MB / 416.2 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.1274, allocations: 1.461 MB / 417.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002669/0.1277, allocations: 12 kB / 417.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003766/0.128, allocations: 150.8 kB / 417.8 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004738/0.1285, allocations: 210.4 kB / 418 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006459/0.1292, allocations: 394.7 kB / 418.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008057/0.13, allocations: 0.8923 MB / 419.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006117/0.1306, allocations: 479.7 kB / 419.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000312/0.131, allocations: 346.8 kB / 420.1 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003604/0.1313, allocations: 374.4 kB / 420.5 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.1314, allocations: 103.9 kB / 420.6 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001867/0.1316, allocations: 135.9 kB / 420.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002061/0.1319, allocations: 215.3 kB / 420.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000347/0.1322, allocations: 430 kB / 421.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008954/0.1331, allocations: 1.067 MB / 422.4 MB, free: 404 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1331, allocations: 0 / 422.4 MB, free: 404 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1331, allocations: 0 / 422.4 MB, free: 404 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1331, allocations: 0 / 422.4 MB, free: 404 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.1947/0.3279, allocations: 1.151 MB / 423.6 MB, free: 44.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.3279, allocations: 13.05 kB / 423.6 MB, free: 44.26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001547/0.3281, allocations: 112.2 kB / 423.7 MB, free: 44.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.3282, allocations: 84.77 kB / 423.8 MB, free: 44.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/0.3289, allocations: 0.511 MB / 424.3 MB, free: 43.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.59e-05/0.3289, allocations: 53.97 kB / 424.3 MB, free: 43.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.354e-05/0.329, allocations: 71.45 kB / 424.4 MB, free: 43.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.3303, allocations: 0.706 MB / 425.1 MB, free: 43.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.543e-05/0.3303, allocations: 3.938 kB / 425.1 MB, free: 43.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.359e-05/0.3304, allocations: 29.8 kB / 425.2 MB, free: 43.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.3304, allocations: 18.62 kB / 425.2 MB, free: 43.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.3315, allocations: 0.5003 MB / 425.7 MB, free: 43.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003223/0.3347, allocations: 2.569 MB / 428.2 MB, free: 42.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009012/0.3356, allocations: 441.2 kB / 428.7 MB, free: 42.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003827/0.336, allocations: 180.2 kB / 428.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.703e-05/0.3361, allocations: 8.5 kB / 428.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005836/0.3367, allocations: 266.7 kB / 429.1 MB, free: 41.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.874e-06/0.3367, allocations: 0 / 429.1 MB, free: 41.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001555/0.3382, allocations: 0.7131 MB / 429.8 MB, free: 41.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.3383, allocations: 139.1 kB / 430 MB, free: 41.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005913/0.3389, allocations: 0.5705 MB / 430.5 MB, free: 41.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.3389, allocations: 32.95 kB / 430.6 MB, free: 41.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.3391, allocations: 357.4 kB / 430.9 MB, free: 40.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.483e-05/0.3392, allocations: 112.4 kB / 431 MB, free: 40.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.3393, allocations: 80.05 kB / 431.1 MB, free: 40.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.272e-05/0.3394, allocations: 373.2 kB / 431.5 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004218/0.3399, allocations: 160 kB / 431.6 MB, free: 40.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004235/0.3403, allocations: 267.1 kB / 431.9 MB, free: 40.19 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008721/0.3412, allocations: 0.5438 MB / 432.4 MB, free: 39.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.3412, allocations: 3.219 kB / 432.4 MB, free: 39.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001107/0.3423, allocations: 0.5999 MB / 433 MB, free: 39.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.959e-05/0.3424, allocations: 95.11 kB / 433.1 MB, free: 39.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3424, allocations: 7.25 kB / 433.1 MB, free: 39.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001351/0.3425, allocations: 25.17 kB / 433.2 MB, free: 39.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003426/0.3429, allocations: 85.81 kB / 433.2 MB, free: 39.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000744/0.3436, allocations: 1.387 MB / 434.6 MB, free: 37.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/0.3441, allocations: 79.97 kB / 434.7 MB, free: 37.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/0.3441, allocations: 22.12 kB / 434.7 MB, free: 37.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004973/0.3446, allocations: 324.4 kB / 435 MB, free: 37.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003653/0.345, allocations: 252.9 kB / 435.3 MB, free: 37.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007391/0.3458, allocations: 0.527 MB / 435.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.026e-06/0.3458, allocations: 3.062 kB / 435.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0009631/0.3467, allocations: 0.5749 MB / 436.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.3468, allocations: 90.3 kB / 436.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.3468, allocations: 3.062 kB / 436.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.804e-05/0.3469, allocations: 35.98 kB / 436.5 MB, free: 36.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.3472, allocations: 79.23 kB / 436.6 MB, free: 36.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006443/0.3478, allocations: 1.382 MB / 438 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004135/0.3482, allocations: 65.97 kB / 438.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.3483, allocations: 20.25 kB / 438.1 MB, free: 35.36 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.0001647/0.3485, allocations: 271.3 kB / 438.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.098e-05/0.3485, allocations: 55.56 kB / 438.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009686/0.3495, allocations: 0.5037 MB / 438.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3495, allocations: 3.219 kB / 438.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3495, allocations: 3.219 kB / 438.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/0.3496, allocations: 7.406 kB / 438.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.3512, allocations: 1.184 MB / 440.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3512, allocations: 3.938 kB / 440.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002948/0.3515, allocations: 62.14 kB / 440.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.47e-05/0.3516, allocations: 21.11 kB / 440.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.3516, allocations: 9.875 kB / 440.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000613/0.3522, allocations: 1.39 MB / 441.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3522, allocations: 3.25 kB / 441.6 MB, free: 32.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.3536, allocations: 0.7891 MB / 442.4 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.3537, allocations: 141.8 kB / 442.5 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.392e-05/0.3538, allocations: 17.72 kB / 442.5 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003873/0.3541, allocations: 44.59 kB / 442.6 MB, free: 32.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.409e-05/0.3543, allocations: 36.41 kB / 442.6 MB, free: 32.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/0.3543, allocations: 9.219 kB / 442.6 MB, free: 32.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004125/0.3547, allocations: 419.7 kB / 443 MB, free: 31.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3547, allocations: 0 / 443 MB, free: 31.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007587/0.3555, allocations: 285.9 kB / 443.3 MB, free: 31.86 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.002258/0.3577, allocations: 1.597 MB / 444.9 MB, free: 30.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.3595, allocations: 1.202 MB / 446.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3596, allocations: 7.438 kB / 446.1 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005425/0.3601, allocations: 430 kB / 446.5 MB, free: 29.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005665/0.3607, allocations: 89.34 kB / 446.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007318/0.368, allocations: 5.614 MB / 452.2 MB, free: 26.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.3684, allocations: 0.9072 MB / 453.1 MB, free: 25.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002494/0.3687, allocations: 65 kB / 453.2 MB, free: 25.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.3689, allocations: 230 kB / 453.4 MB, free: 25.56 MB / 350.1 MB Notification: Performance of SimCode: time 1.323e-06/0.369, allocations: 0 / 453.4 MB, free: 25.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03792/0.4069, allocations: 12.89 MB / 466.3 MB, free: 24.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.629/10.04, allocations: 15.94 kB / 466.3 MB, free: 24.18 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_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_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)