Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTlib_main_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_main_EHPTlib_MapBased_TestingModels_TestTwoFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange,fileNamePrefix="EHPTlib_main_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.0009531/0.000953, allocations: 108 kB / 15.59 MB, free: 184 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.0009722/0.0009721, allocations: 196.4 kB / 16.51 MB, free: 6.719 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.181/1.181, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1295/0.1295, allocations: 8.018 MB / 298.4 MB, free: 2.367 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001055/0.001055, allocations: 60.14 kB / 360.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07405/0.07512, allocations: 51.19 MB / 411.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.00501/0.08015, allocations: 4.286 MB / 416.1 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002194/0.08236, allocations: 1.473 MB / 417.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003698/0.08274, allocations: 12 kB / 417.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004033/0.08317, allocations: 154.8 kB / 417.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005457/0.08372, allocations: 202.4 kB / 418 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00069/0.08442, allocations: 403.1 kB / 418.4 MB, free: 4.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007178/0.08515, allocations: 0.8845 MB / 419.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005011/0.08566, allocations: 479.7 kB / 419.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002693/0.08594, allocations: 350.7 kB / 420.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003209/0.08626, allocations: 378.4 kB / 420.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.08638, allocations: 100 kB / 420.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.08655, allocations: 139.9 kB / 420.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001749/0.08674, allocations: 203.4 kB / 420.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003081/0.08705, allocations: 437.9 kB / 421.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008087/0.08786, allocations: 1.067 MB / 422.4 MB, free: 400 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.08788, allocations: 0 / 422.4 MB, free: 400 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.08788, allocations: 0 / 422.4 MB, free: 400 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.0879, allocations: 0 / 422.4 MB, free: 400 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.1193/0.2072, allocations: 1.149 MB / 423.5 MB, free: 44.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.2072, allocations: 12.67 kB / 423.5 MB, free: 44.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001183/0.2074, allocations: 111 kB / 423.6 MB, free: 44.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.2075, allocations: 88.97 kB / 423.7 MB, free: 44.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006241/0.2082, allocations: 0.508 MB / 424.2 MB, free: 43.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.2082, allocations: 57.16 kB / 424.3 MB, free: 43.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-05/0.2083, allocations: 71.16 kB / 424.4 MB, free: 43.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.2094, allocations: 0.7026 MB / 425.1 MB, free: 43.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.2095, allocations: 7.312 kB / 425.1 MB, free: 43.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.939e-05/0.2095, allocations: 31.81 kB / 425.1 MB, free: 43.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.2095, allocations: 13.69 kB / 425.1 MB, free: 43.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009614/0.2105, allocations: 0.5029 MB / 425.6 MB, free: 43.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002877/0.2134, allocations: 2.574 MB / 428.2 MB, free: 42.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007887/0.2142, allocations: 437 kB / 428.6 MB, free: 42.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003425/0.2145, allocations: 178.3 kB / 428.8 MB, free: 42.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.2146, allocations: 6.844 kB / 428.8 MB, free: 42.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005078/0.2151, allocations: 259.3 kB / 429 MB, free: 42.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.643e-06/0.2151, allocations: 3.219 kB / 429 MB, free: 42.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001399/0.2165, allocations: 0.7243 MB / 429.8 MB, free: 41.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.2166, allocations: 139 kB / 429.9 MB, free: 41.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004837/0.2171, allocations: 0.5693 MB / 430.5 MB, free: 41.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.92e-05/0.2171, allocations: 35.67 kB / 430.5 MB, free: 41.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.2172, allocations: 355.1 kB / 430.9 MB, free: 40.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.96e-05/0.2173, allocations: 114.3 kB / 431 MB, free: 40.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.2174, allocations: 78.41 kB / 431 MB, free: 40.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.718e-05/0.2175, allocations: 364.1 kB / 431.4 MB, free: 40.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.2179, allocations: 161.3 kB / 431.6 MB, free: 40.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003721/0.2182, allocations: 268.4 kB / 431.8 MB, free: 40.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007141/0.219, allocations: 0.545 MB / 432.4 MB, free: 39.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.219, allocations: 3.031 kB / 432.4 MB, free: 39.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009713/0.2199, allocations: 0.6066 MB / 433 MB, free: 39.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.571e-05/0.22, allocations: 90.33 kB / 433.1 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.22, allocations: 3.156 kB / 433.1 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001328/0.2201, allocations: 32.09 kB / 433.1 MB, free: 39.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003037/0.2205, allocations: 83.92 kB / 433.2 MB, free: 39.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006342/0.2211, allocations: 1.384 MB / 434.6 MB, free: 38.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/0.2215, allocations: 80.25 kB / 434.6 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.379e-05/0.2216, allocations: 23.61 kB / 434.7 MB, free: 38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004332/0.222, allocations: 322.5 kB / 435 MB, free: 37.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003255/0.2223, allocations: 247.5 kB / 435.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006257/0.223, allocations: 0.5368 MB / 435.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.833e-06/0.223, allocations: 3.828 kB / 435.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.00087/0.2238, allocations: 0.5701 MB / 436.3 MB, free: 36.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.093e-05/0.2239, allocations: 90.64 kB / 436.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2239, allocations: 6.719 kB / 436.4 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.861e-05/0.224, allocations: 25.92 kB / 436.5 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002685/0.2242, allocations: 85.48 kB / 436.5 MB, free: 36.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005453/0.2248, allocations: 1.381 MB / 437.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/0.2252, allocations: 68.98 kB / 438 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.2252, allocations: 17.91 kB / 438 MB, free: 35.42 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.0001211/0.2253, allocations: 273.2 kB / 438.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.864e-05/0.2254, allocations: 49.72 kB / 438.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008884/0.2263, allocations: 0.5055 MB / 438.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2263, allocations: 7.656 kB / 438.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2263, allocations: 3.375 kB / 438.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2263, allocations: 7.359 kB / 438.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.2277, allocations: 1.19 MB / 440 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2277, allocations: 3.938 kB / 440 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/0.228, allocations: 52.58 kB / 440.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.658e-05/0.2281, allocations: 25.36 kB / 440.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.2281, allocations: 17.98 kB / 440.1 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000527/0.2287, allocations: 1.383 MB / 441.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2287, allocations: 0 / 441.5 MB, free: 32.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.2299, allocations: 0.7975 MB / 442.3 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.387e-05/0.23, allocations: 135.1 kB / 442.4 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.23, allocations: 11.12 kB / 442.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000346/0.2304, allocations: 46.53 kB / 442.5 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.341e-05/0.2305, allocations: 30.36 kB / 442.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.2305, allocations: 17.98 kB / 442.5 MB, free: 32.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003333/0.2308, allocations: 421.5 kB / 443 MB, free: 32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2309, allocations: 0 / 443 MB, free: 32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000616/0.2315, allocations: 283.4 kB / 443.2 MB, free: 31.92 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.001986/0.2335, allocations: 1.595 MB / 444.8 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.235, allocations: 1.201 MB / 446 MB, free: 30.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.235, allocations: 0.8125 kB / 446 MB, free: 30.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004712/0.2355, allocations: 432.5 kB / 446.5 MB, free: 29.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.2359, allocations: 86.2 kB / 446.5 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005954/0.2419, allocations: 5.604 MB / 452.1 MB, free: 26.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002466/0.2422, allocations: 0.9052 MB / 453 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.2424, allocations: 72.94 kB / 453.1 MB, free: 25.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002144/0.2426, allocations: 228.8 kB / 453.3 MB, free: 25.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2426, allocations: 0 / 453.3 MB, free: 25.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.806/2.049, allocations: 12.88 MB / 466.2 MB, free: 24.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 21.87/23.92, allocations: 12.33 kB / 466.2 MB, free: 24.29 MB / 350.1 MB (rm -f EHPTlib_main_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; mkfifo EHPTlib_main_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; head -c 1048576 < EHPTlib_main_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe >> ../files/EHPTlib_main_EHPTlib.MapBased.TestingModels.TestTwoFlange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_main_EHPTlib_MapBased_TestingModels_TestTwoFlange_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_main_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_main_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)