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 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.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.00143/0.00143, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 195.2 kB / 16.25 MB, free: 6.629 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.448/1.448, allocations: 222.9 MB / 239.9 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1686/0.1686, allocations: 8.925 MB / 299 MB, free: 2.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.89 kB / 361.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1029, allocations: 51.47 MB / 412.9 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange2): time 0.0062/0.1091, allocations: 4.447 MB / 417.3 MB, free: 5.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003311/0.1124, allocations: 2.055 MB / 419.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003392/0.1128, allocations: 15.94 kB / 419.4 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004447/0.1133, allocations: 127.3 kB / 419.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005467/0.1139, allocations: 190.9 kB / 419.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000733/0.1146, allocations: 382.9 kB / 420.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009579/0.1156, allocations: 0.9547 MB / 421.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006941/0.1163, allocations: 0.5121 MB / 421.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004346/0.1167, allocations: 370.7 kB / 421.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000509/0.1172, allocations: 418.2 kB / 422.3 MB, free: 388 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001325/0.1174, allocations: 112 kB / 422.4 MB, free: 276 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002333/0.1176, allocations: 156 kB / 422.6 MB, free: 120 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1523/0.2699, allocations: 244.3 kB / 422.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005345/0.2705, allocations: 473.2 kB / 423.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.2717, allocations: 1.211 MB / 424.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.2717, allocations: 0 / 424.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2717, allocations: 2.906 kB / 424.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.2717, allocations: 0 / 424.5 MB, free: 37.41 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.001839/0.2736, allocations: 1.24 MB / 425.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.2736, allocations: 15.3 kB / 425.8 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.2738, allocations: 124.3 kB / 425.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.2739, allocations: 93.66 kB / 426 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00058/0.2745, allocations: 0.5679 MB / 426.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.917e-05/0.2745, allocations: 57.94 kB / 426.6 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.53e-05/0.2746, allocations: 78.03 kB / 426.7 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.2758, allocations: 0.7429 MB / 427.4 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.537e-05/0.2759, allocations: 6.719 kB / 427.4 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.11e-05/0.276, allocations: 28.16 kB / 427.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.276, allocations: 17.7 kB / 427.5 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.277, allocations: 0.5277 MB / 428 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00311/0.2801, allocations: 2.743 MB / 430.7 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000846/0.281, allocations: 465.1 kB / 431.2 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003572/0.2814, allocations: 183.4 kB / 431.4 MB, free: 35.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.148e-05/0.2814, allocations: 10.42 kB / 431.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005339/0.282, allocations: 272.2 kB / 431.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.873e-06/0.282, allocations: 0 / 431.7 MB, free: 35.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001437/0.2834, allocations: 0.7309 MB / 432.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.2835, allocations: 172.2 kB / 432.6 MB, free: 34.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006353/0.2841, allocations: 0.6802 MB / 433.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.663e-05/0.2842, allocations: 43.58 kB / 433.3 MB, free: 34.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.2843, allocations: 382.5 kB / 433.6 MB, free: 33.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.783e-05/0.2844, allocations: 123.7 kB / 433.8 MB, free: 33.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.2845, allocations: 98.2 kB / 433.9 MB, free: 33.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.2846, allocations: 374.1 kB / 434.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/0.285, allocations: 186.4 kB / 434.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004093/0.2854, allocations: 311.5 kB / 434.7 MB, free: 33.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007696/0.2862, allocations: 0.5957 MB / 435.3 MB, free: 32.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.2862, allocations: 3.938 kB / 435.3 MB, free: 32.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001043/0.2873, allocations: 0.6756 MB / 436 MB, free: 32.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.2873, allocations: 94.12 kB / 436.1 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.425e-06/0.2873, allocations: 6 kB / 436.1 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001337/0.2875, allocations: 25.31 kB / 436.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003432/0.2878, allocations: 97.92 kB / 436.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006875/0.2885, allocations: 1.388 MB / 437.6 MB, free: 30.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004314/0.289, allocations: 85.89 kB / 437.7 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.757e-05/0.289, allocations: 22.09 kB / 437.7 MB, free: 30.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005076/0.2895, allocations: 365.8 kB / 438.1 MB, free: 30.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003706/0.2899, allocations: 291.4 kB / 438.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006882/0.2906, allocations: 0.5753 MB / 438.9 MB, free: 30.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.104e-06/0.2906, allocations: 0 / 438.9 MB, free: 30.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.0009691/0.2916, allocations: 0.6548 MB / 439.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.827e-05/0.2916, allocations: 90.31 kB / 439.7 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.2916, allocations: 7.453 kB / 439.7 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.935e-05/0.2917, allocations: 27.42 kB / 439.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003201/0.292, allocations: 92.56 kB / 439.8 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005472/0.2926, allocations: 1.401 MB / 441.2 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.293, allocations: 66.42 kB / 441.3 MB, free: 28.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.2931, allocations: 22.41 kB / 441.3 MB, free: 28.17 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.0001354/0.2932, allocations: 267.8 kB / 441.5 MB, free: 27.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.249e-05/0.2933, allocations: 67.25 kB / 441.6 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009664/0.2942, allocations: 0.5369 MB / 442.1 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2943, allocations: 3.062 kB / 442.1 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.2943, allocations: 0 / 442.1 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2943, allocations: 4 kB / 442.1 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001517/0.2958, allocations: 1.289 MB / 443.4 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2958, allocations: 7.25 kB / 443.4 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003011/0.2961, allocations: 63.58 kB / 443.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.835e-05/0.2962, allocations: 20.2 kB / 443.5 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/0.2962, allocations: 10.7 kB / 443.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005384/0.2968, allocations: 1.384 MB / 444.9 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2968, allocations: 0 / 444.9 MB, free: 25.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.2981, allocations: 0.8387 MB / 445.8 MB, free: 25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.89e-05/0.2982, allocations: 141.4 kB / 445.9 MB, free: 24.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.304e-05/0.2983, allocations: 11.12 kB / 445.9 MB, free: 24.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003783/0.2987, allocations: 42.31 kB / 445.9 MB, free: 24.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.365e-05/0.2988, allocations: 37.28 kB / 446 MB, free: 24.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.2988, allocations: 16.11 kB / 446 MB, free: 24.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004382/0.2992, allocations: 494.1 kB / 446.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2992, allocations: 4 kB / 446.5 MB, free: 24.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007435/0.3, allocations: 317.3 kB / 446.8 MB, free: 24.55 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.002723/0.3027, allocations: 1.672 MB / 448.5 MB, free: 23.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.3045, allocations: 1.288 MB / 449.8 MB, free: 22.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3045, allocations: 2.875 kB / 449.8 MB, free: 22.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005151/0.305, allocations: 447.3 kB / 450.2 MB, free: 22.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005572/0.3056, allocations: 84.17 kB / 450.3 MB, free: 22.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007516/0.3131, allocations: 6.639 MB / 456.9 MB, free: 18.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.3134, allocations: 0.9384 MB / 457.9 MB, free: 17.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002705/0.3137, allocations: 64.95 kB / 457.9 MB, free: 17.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002808/0.314, allocations: 261.4 kB / 458.2 MB, free: 17.56 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.314, allocations: 0 / 458.2 MB, free: 17.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04147/0.3555, allocations: 14.21 MB / 472.4 MB, free: 16.17 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/0.3557, allocations: 267.1 kB / 472.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/2.656, allocations: 1.156 kB / 472.6 MB, free: 15.81 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange2.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange2.pipe 2>&1)