Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.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.TestOneFlange.TestOneFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestOneFlange_TestOneFlange1",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.001338/0.001338, allocations: 108 kB / 15.6 MB, free: 132 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.0015/0.0015, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.454/1.454, 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 3.0.0-main/package.mo): time 0.1673/0.1673, allocations: 8.411 MB / 298.8 MB, free: 2.09 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.89 kB / 361.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1035, allocations: 51.36 MB / 412.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1): time 0.00748/0.111, allocations: 5.146 MB / 417.8 MB, free: 5.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002936/0.114, allocations: 1.492 MB / 419.3 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004361/0.1144, allocations: 12 kB / 419.3 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004831/0.1149, allocations: 202.6 kB / 419.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005735/0.1155, allocations: 230.4 kB / 419.7 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007306/0.1163, allocations: 379.3 kB / 420.1 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009818/0.1173, allocations: 0.9509 MB / 421.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000653/0.1179, allocations: 486.9 kB / 421.5 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000436/0.1184, allocations: 366.7 kB / 421.9 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004948/0.1189, allocations: 418.2 kB / 422.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001306/0.119, allocations: 104 kB / 422.4 MB, free: 412 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002335/0.1193, allocations: 140 kB / 422.5 MB, free: 272 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002195/0.1195, allocations: 207.4 kB / 422.7 MB, free: 64 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.161/0.2804, allocations: 429.5 kB / 423.2 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001431/0.2819, allocations: 1.079 MB / 424.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.2819, allocations: 0 / 424.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.282, allocations: 4.656 kB / 424.2 MB, free: 37.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.712e-05/0.282, allocations: 0 / 424.2 MB, free: 37.45 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.001939/0.2839, allocations: 1.188 MB / 425.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.284, allocations: 14.7 kB / 425.4 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001078/0.2841, allocations: 109.9 kB / 425.5 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001497/0.2843, allocations: 89.31 kB / 425.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.2848, allocations: 0.4999 MB / 426.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.2849, allocations: 79.48 kB / 426.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.335e-05/0.285, allocations: 78.56 kB / 426.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.2862, allocations: 0.6984 MB / 427 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.426e-05/0.2862, allocations: 5.031 kB / 427 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6e-05/0.2863, allocations: 29.06 kB / 427 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.2863, allocations: 18.72 kB / 427 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001131/0.2875, allocations: 0.5142 MB / 427.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00305/0.2905, allocations: 2.599 MB / 430.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009302/0.2915, allocations: 466.2 kB / 430.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.2919, allocations: 198.9 kB / 430.8 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.312e-05/0.2919, allocations: 5.953 kB / 430.8 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005884/0.2925, allocations: 285.3 kB / 431.1 MB, free: 35.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=36): time 2.275e-06/0.2925, allocations: 4 kB / 431.1 MB, free: 35.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001637/0.2942, allocations: 0.7574 MB / 431.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.117e-05/0.2943, allocations: 138.8 kB / 432 MB, free: 34.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005516/0.2948, allocations: 0.5816 MB / 432.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.2949, allocations: 39.55 kB / 432.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.295, allocations: 359.2 kB / 433 MB, free: 34.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.461e-05/0.2951, allocations: 127.3 kB / 433.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.2953, allocations: 90.52 kB / 433.2 MB, free: 34.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.879e-05/0.2954, allocations: 379.1 kB / 433.5 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004078/0.2958, allocations: 187.1 kB / 433.7 MB, free: 33.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004274/0.2962, allocations: 300.9 kB / 434 MB, free: 33.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008178/0.297, allocations: 0.6015 MB / 434.6 MB, free: 33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.297, allocations: 4 kB / 434.6 MB, free: 32.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001164/0.2982, allocations: 0.6734 MB / 435.3 MB, free: 32.67 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.335e-05/0.2983, allocations: 93.22 kB / 435.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.2983, allocations: 5.469 kB / 435.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001733/0.2985, allocations: 27.25 kB / 435.4 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003806/0.2989, allocations: 100.3 kB / 435.5 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007217/0.2996, allocations: 1.392 MB / 436.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004566/0.3001, allocations: 84.16 kB / 437 MB, free: 31.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.3001, allocations: 25.05 kB / 437 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005215/0.3007, allocations: 343.4 kB / 437.3 MB, free: 30.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003833/0.3011, allocations: 292.2 kB / 437.6 MB, free: 30.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007223/0.3018, allocations: 0.5873 MB / 438.2 MB, free: 30.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.953e-06/0.3018, allocations: 0 / 438.2 MB, free: 30.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001022/0.3028, allocations: 0.6538 MB / 438.9 MB, free: 29.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.3029, allocations: 90.27 kB / 439 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3029, allocations: 6.5 kB / 439 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.427e-05/0.303, allocations: 28.84 kB / 439 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003329/0.3033, allocations: 95.08 kB / 439.1 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005867/0.3039, allocations: 1.384 MB / 440.5 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004183/0.3043, allocations: 71.66 kB / 440.5 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.209e-05/0.3044, allocations: 20.06 kB / 440.6 MB, free: 28.41 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: 8 (oneFlange.limTau.state,oneFlange.limitingTorque,tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,$whenCondition1,oneFlange.pDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * 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.0001582/0.3045, allocations: 279.9 kB / 440.8 MB, free: 28.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.126e-05/0.3046, allocations: 60.38 kB / 440.9 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.3057, allocations: 0.5337 MB / 441.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3057, allocations: 9.312 kB / 441.4 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.886e-06/0.3057, allocations: 7.062 kB / 441.4 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.3057, allocations: 0 / 441.4 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/0.3073, allocations: 1.236 MB / 442.7 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3074, allocations: 0 / 442.7 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003147/0.3077, allocations: 63.83 kB / 442.7 MB, free: 27.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.856e-05/0.3078, allocations: 31.62 kB / 442.8 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.3078, allocations: 7.156 kB / 442.8 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005362/0.3083, allocations: 1.378 MB / 444.2 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3083, allocations: 4.156 kB / 444.2 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.3097, allocations: 0.8472 MB / 445 MB, free: 25.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001425/0.3099, allocations: 174 kB / 445.2 MB, free: 25.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.794e-05/0.3099, allocations: 17.02 kB / 445.2 MB, free: 25.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003898/0.3103, allocations: 44.38 kB / 445.2 MB, free: 25.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.511e-05/0.3104, allocations: 41.77 kB / 445.3 MB, free: 25.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.3105, allocations: 10.16 kB / 445.3 MB, free: 25.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003585/0.3108, allocations: 415 kB / 445.7 MB, free: 24.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3108, allocations: 0 / 445.7 MB, free: 24.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006746/0.3115, allocations: 296.8 kB / 446 MB, free: 24.8 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,oneFlange.pDC.integrator1.y) * Number of discrete variables: 5 ($whenCondition1,tauRef.T_start,tauRef.count,oneFlange.limitingTorque,oneFlange.limTau.state) * Number of discrete states: 2 (tauRef.count,oneFlange.limTau.state) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 29 * 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.002605/0.3141, allocations: 1.643 MB / 447.6 MB, free: 23.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.3159, allocations: 1.291 MB / 448.9 MB, free: 22.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.316, allocations: 0 / 448.9 MB, free: 22.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005334/0.3165, allocations: 448 kB / 449.4 MB, free: 22.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.317, allocations: 87.16 kB / 449.4 MB, free: 22.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006156/0.3232, allocations: 5.596 MB / 455 MB, free: 19.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.3235, allocations: 0.9048 MB / 455.9 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002767/0.3238, allocations: 65.45 kB / 456 MB, free: 18.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002548/0.324, allocations: 243.9 kB / 456.2 MB, free: 18.41 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.324, allocations: 3.938 kB / 456.3 MB, free: 18.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05078/0.3748, allocations: 13.15 MB / 469.4 MB, free: 17.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.829/10.2, allocations: 6.25 kB / 469.4 MB, free: 17.03 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.sim & python3 -m fmpy simulate --output-file EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1_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_TestOneFlange_TestOneFlange1.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestOneFlange.TestOneFlange1.pipe 2>&1)