Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.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.TestOneFlange,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestOneFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestOneFlange,fileNamePrefix="EHPTlib_EHPTlib_MapBased_TestingModels_TestOneFlange",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.0008199/0.00082, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.005236/0.005236, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1848/0.1848, allocations: 8.028 MB / 299.5 MB, free: 3.336 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003064, allocations: 8 kB / 362.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09388/0.0942, allocations: 52.18 MB / 414.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestOneFlange): time 0.004045/0.09828, allocations: 3.709 MB / 418.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.1002, allocations: 1.38 MB / 419.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.1005, allocations: 15.94 kB / 419.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002976/0.1008, allocations: 123.3 kB / 419.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003809/0.1012, allocations: 159 kB / 420.1 MB, free: 4.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.1017, allocations: 342.8 kB / 420.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006539/0.1024, allocations: 0.7553 MB / 421.2 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000577/0.103, allocations: 390.1 kB / 421.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.1033, allocations: 231 kB / 421.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.1036, allocations: 286.5 kB / 422 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.848e-05/0.1036, allocations: 32 kB / 422.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.1038, allocations: 56 kB / 422.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.1039, allocations: 139.4 kB / 422.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000271/0.1042, allocations: 351.8 kB / 422.6 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007598/0.105, allocations: 0.9303 MB / 423.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.105, allocations: 0 / 423.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.105, allocations: 0 / 423.5 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.105, allocations: 0 / 423.5 MB, free: 0.7031 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.1418/0.2468, allocations: 0.9876 MB / 424.5 MB, free: 41.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.2469, allocations: 10.03 kB / 424.5 MB, free: 41.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002035/0.2471, allocations: 108.4 kB / 424.6 MB, free: 41.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.2472, allocations: 80.83 kB / 424.7 MB, free: 41.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005529/0.2478, allocations: 0.4924 MB / 425.2 MB, free: 41.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.657e-05/0.2478, allocations: 50.88 kB / 425.3 MB, free: 41.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.008e-05/0.2479, allocations: 69.62 kB / 425.3 MB, free: 41.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.249, allocations: 0.6607 MB / 426 MB, free: 41.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.249, allocations: 9.375 kB / 426 MB, free: 41.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.115e-05/0.2491, allocations: 27.67 kB / 426 MB, free: 41.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2491, allocations: 14.53 kB / 426 MB, free: 41.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009856/0.2501, allocations: 0.5037 MB / 426.6 MB, free: 41.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002694/0.2528, allocations: 2.539 MB / 429.1 MB, free: 40.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008129/0.2536, allocations: 450.2 kB / 429.5 MB, free: 40.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003711/0.254, allocations: 191.4 kB / 429.7 MB, free: 40.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.254, allocations: 11.58 kB / 429.7 MB, free: 40.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005165/0.2546, allocations: 266.2 kB / 430 MB, free: 40.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.563e-06/0.2546, allocations: 0 / 430 MB, free: 40.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001407/0.256, allocations: 0.7414 MB / 430.7 MB, free: 39.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.256, allocations: 135.2 kB / 430.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004651/0.2565, allocations: 0.5563 MB / 431.4 MB, free: 39.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.217e-05/0.2565, allocations: 37.09 kB / 431.5 MB, free: 39.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.2567, allocations: 341.9 kB / 431.8 MB, free: 39.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.2568, allocations: 107.3 kB / 431.9 MB, free: 39.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.662e-05/0.2568, allocations: 36.06 kB / 431.9 MB, free: 39.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.2569, allocations: 368.2 kB / 432.3 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003633/0.2573, allocations: 165.8 kB / 432.4 MB, free: 38.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004134/0.2577, allocations: 278.4 kB / 432.7 MB, free: 38.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000813/0.2585, allocations: 0.5665 MB / 433.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.2585, allocations: 0 / 433.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001017/0.2596, allocations: 0.6279 MB / 433.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.998e-05/0.2596, allocations: 256.7 kB / 434.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.2597, allocations: 6.969 kB / 434.2 MB, free: 38.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001203/0.2598, allocations: 25.25 kB / 434.2 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.2601, allocations: 87.02 kB / 434.3 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005705/0.2607, allocations: 1.282 MB / 435.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003853/0.2611, allocations: 87.05 kB / 435.6 MB, free: 36.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.084e-05/0.2611, allocations: 22.73 kB / 435.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.078e-06/0.2611, allocations: 3.156 kB / 435.7 MB, free: 36.65 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008646/0.262, allocations: 0.546 MB / 436.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.262, allocations: 2.875 kB / 436.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.955e-05/0.2621, allocations: 23.64 kB / 436.2 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.2623, allocations: 87.36 kB / 436.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004937/0.2628, allocations: 1.289 MB / 437.6 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003451/0.2632, allocations: 81.83 kB / 437.7 MB, free: 35.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.519e-05/0.2632, allocations: 17.38 kB / 437.7 MB, free: 35.01 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 (oneFlange.limTau.state,tauRef.count,$PRE.tauRef.count,tauRef.T_start,$PRE.tauRef.T_start,$whenCondition1,oneFlange.constPDC.integrator1.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 39 * 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.0002296/0.2635, allocations: 355.8 kB / 438.1 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.496e-05/0.2635, allocations: 55.88 kB / 438.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009646/0.2645, allocations: 0.5278 MB / 438.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2645, allocations: 3.312 kB / 438.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.2645, allocations: 1.75 kB / 438.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.2645, allocations: 5.344 kB / 438.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.2664, allocations: 1.165 MB / 439.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2664, allocations: 3.312 kB / 439.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.2667, allocations: 70.59 kB / 439.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.303e-05/0.2667, allocations: 14.86 kB / 439.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.701e-05/0.2668, allocations: 10.5 kB / 439.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000574/0.2673, allocations: 1.281 MB / 441.2 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2674, allocations: 0 / 441.2 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/0.2687, allocations: 0.8201 MB / 442 MB, free: 31.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.491e-05/0.2688, allocations: 147 kB / 442.2 MB, free: 31.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.946e-05/0.2688, allocations: 7.25 kB / 442.2 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003566/0.2692, allocations: 53.59 kB / 442.2 MB, free: 31.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-05/0.2693, allocations: 30.45 kB / 442.3 MB, free: 31.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.473e-05/0.2693, allocations: 17.59 kB / 442.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003478/0.2697, allocations: 413.8 kB / 442.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2697, allocations: 0 / 442.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006326/0.2703, allocations: 267.6 kB / 442.9 MB, free: 31.57 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.constPDC.integrator1.y) * Number of discrete variables: 4 ($whenCondition1,tauRef.T_start,tauRef.count,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 (28): * Single equations (assignments): 23 * 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.002131/0.2725, allocations: 1.611 MB / 444.5 MB, free: 30.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.2742, allocations: 1.213 MB / 445.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2742, allocations: 3.281 kB / 445.8 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005809/0.2748, allocations: 443.2 kB / 446.2 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.2753, allocations: 86.73 kB / 446.3 MB, free: 29.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006267/0.2816, allocations: 5.855 MB / 452.1 MB, free: 26 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.2819, allocations: 0.8893 MB / 453 MB, free: 25.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002073/0.2821, allocations: 63.05 kB / 453.1 MB, free: 25.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.2823, allocations: 204.9 kB / 453.3 MB, free: 25.11 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2823, allocations: 0 / 453.3 MB, free: 25.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.3032, allocations: 11.59 MB / 464.9 MB, free: 24.17 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001304/0.3034, allocations: 257.2 kB / 465.1 MB, free: 23.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.929/2.232, allocations: 0 / 465.1 MB, free: 23.91 MB / 350.1 MB (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_EHPTlib_MapBased_TestingModels_TestOneFlange_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_EHPTlib_MapBased_TestingModels_TestOneFlange.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestOneFlange.pipe 2>&1)