Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_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_EHPTlib_MapBased_TestingModels_TestTwoFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange,fileNamePrefix="EHPTlib_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.001224/0.001224, 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.001233/0.001233, allocations: 195.6 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.195/1.195, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.1258/0.1258, allocations: 8.027 MB / 298.4 MB, free: 2.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001153, allocations: 63.89 kB / 360.7 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08199/0.08316, allocations: 51.19 MB / 411.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.00515/0.08835, allocations: 4.286 MB / 416.2 MB, free: 6.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002044/0.09041, allocations: 1.469 MB / 417.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.09065, allocations: 15.94 kB / 417.7 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003617/0.09102, allocations: 150.8 kB / 417.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004413/0.09148, allocations: 206.4 kB / 418 MB, free: 4.844 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005974/0.09209, allocations: 403.3 kB / 418.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007229/0.09282, allocations: 0.8884 MB / 419.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005331/0.09336, allocations: 475.7 kB / 419.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002879/0.09366, allocations: 342.9 kB / 420.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003542/0.09402, allocations: 382.4 kB / 420.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.09413, allocations: 104 kB / 420.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001714/0.09431, allocations: 124 kB / 420.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.09451, allocations: 223.3 kB / 420.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000321/0.09484, allocations: 422.1 kB / 421.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008133/0.09565, allocations: 1.067 MB / 422.4 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.09567, allocations: 3.938 kB / 422.4 MB, free: 444 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.09567, allocations: 0 / 422.4 MB, free: 444 kB / 350.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.09569, allocations: 0 / 422.4 MB, free: 444 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.1419/0.2376, allocations: 1.15 MB / 423.6 MB, free: 44.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2377, allocations: 11.75 kB / 423.6 MB, free: 44.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.862e-05/0.2378, allocations: 112.9 kB / 423.7 MB, free: 44.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.2379, allocations: 84.16 kB / 423.8 MB, free: 44.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00052/0.2384, allocations: 0.5112 MB / 424.3 MB, free: 43.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.719e-05/0.2385, allocations: 53.12 kB / 424.3 MB, free: 43.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.022e-05/0.2386, allocations: 72.08 kB / 424.4 MB, free: 43.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.2396, allocations: 0.7048 MB / 425.1 MB, free: 43.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.2397, allocations: 11.84 kB / 425.1 MB, free: 43.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.953e-05/0.2397, allocations: 30.73 kB / 425.2 MB, free: 43.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.2397, allocations: 16.5 kB / 425.2 MB, free: 43.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009786/0.2407, allocations: 0.5014 MB / 425.7 MB, free: 43.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.2434, allocations: 2.568 MB / 428.2 MB, free: 42.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008103/0.2443, allocations: 439.5 kB / 428.7 MB, free: 42.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003531/0.2446, allocations: 185.9 kB / 428.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.238e-05/0.2447, allocations: 4.719 kB / 428.9 MB, free: 42.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005538/0.2452, allocations: 259.3 kB / 429.1 MB, free: 42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.443e-06/0.2452, allocations: 1.656 kB / 429.1 MB, free: 42 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001396/0.2466, allocations: 0.7144 MB / 429.8 MB, free: 41.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.2467, allocations: 135 kB / 430 MB, free: 41.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004693/0.2472, allocations: 0.5717 MB / 430.5 MB, free: 41.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.568e-05/0.2472, allocations: 36.98 kB / 430.6 MB, free: 41.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.2473, allocations: 358.1 kB / 430.9 MB, free: 40.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.094e-05/0.2474, allocations: 116.8 kB / 431 MB, free: 40.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.2475, allocations: 82.36 kB / 431.1 MB, free: 40.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.721e-05/0.2476, allocations: 364.5 kB / 431.5 MB, free: 40.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003638/0.248, allocations: 168.1 kB / 431.6 MB, free: 40.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003818/0.2483, allocations: 258.3 kB / 431.9 MB, free: 40.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007459/0.2491, allocations: 0.5449 MB / 432.4 MB, free: 39.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2491, allocations: 3 kB / 432.4 MB, free: 39.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009547/0.2501, allocations: 0.6119 MB / 433 MB, free: 39.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.2501, allocations: 89.88 kB / 433.1 MB, free: 39.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2501, allocations: 0 / 433.1 MB, free: 39.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001288/0.2503, allocations: 28.33 kB / 433.2 MB, free: 39.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.2506, allocations: 87.8 kB / 433.2 MB, free: 39.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006391/0.2512, allocations: 1.39 MB / 434.6 MB, free: 38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003616/0.2516, allocations: 78.44 kB / 434.7 MB, free: 37.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.2516, allocations: 17.75 kB / 434.7 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004511/0.2521, allocations: 327.9 kB / 435.1 MB, free: 37.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003392/0.2524, allocations: 251.3 kB / 435.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000665/0.2531, allocations: 0.5271 MB / 435.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.693e-06/0.2531, allocations: 0 / 435.8 MB, free: 37.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.0008704/0.254, allocations: 0.577 MB / 436.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.254, allocations: 95.08 kB / 436.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.254, allocations: 3.672 kB / 436.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.468e-05/0.2541, allocations: 28.69 kB / 436.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002635/0.2544, allocations: 80.39 kB / 436.6 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005509/0.2549, allocations: 1.387 MB / 438 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003475/0.2553, allocations: 68.44 kB / 438.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.2553, allocations: 16.88 kB / 438.1 MB, free: 35.38 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.0001206/0.2555, allocations: 271.8 kB / 438.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.001e-05/0.2555, allocations: 49.69 kB / 438.4 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009196/0.2564, allocations: 0.5069 MB / 438.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2565, allocations: 6.312 kB / 438.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.2565, allocations: 0 / 438.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.2565, allocations: 3.938 kB / 438.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.2579, allocations: 1.191 MB / 440.1 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2579, allocations: 3.938 kB / 440.1 MB, free: 34.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/0.2582, allocations: 64.77 kB / 440.2 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-05/0.2583, allocations: 18.77 kB / 440.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.2583, allocations: 10.7 kB / 440.2 MB, free: 34.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005796/0.2589, allocations: 1.385 MB / 441.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2589, allocations: 0 / 441.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.2602, allocations: 0.7915 MB / 442.4 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.521e-05/0.2603, allocations: 140 kB / 442.5 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.268e-05/0.2603, allocations: 13.91 kB / 442.5 MB, free: 32.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003419/0.2607, allocations: 48.91 kB / 442.6 MB, free: 32.15 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.027e-05/0.2608, allocations: 30.89 kB / 442.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.2608, allocations: 14.34 kB / 442.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.2612, allocations: 419.4 kB / 443 MB, free: 31.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2612, allocations: 4 kB / 443 MB, free: 31.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006668/0.2618, allocations: 284.3 kB / 443.3 MB, free: 31.88 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.002149/0.264, allocations: 1.593 MB / 444.9 MB, free: 30.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.2656, allocations: 1.204 MB / 446.1 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2657, allocations: 0 / 446.1 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005041/0.2662, allocations: 433.4 kB / 446.5 MB, free: 29.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004971/0.2667, allocations: 99 kB / 446.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005982/0.2727, allocations: 5.614 MB / 452.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.273, allocations: 0.9072 MB / 453.1 MB, free: 25.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002087/0.2732, allocations: 65.73 kB / 453.2 MB, free: 25.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.2734, allocations: 229.5 kB / 453.4 MB, free: 25.58 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2734, allocations: 0.9844 kB / 453.4 MB, free: 25.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03217/0.3056, allocations: 12.89 MB / 466.3 MB, free: 24.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.007/9.313, allocations: 8.219 kB / 466.3 MB, free: 24.21 MB / 350.1 MB (rm -f EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; mkfifo EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; head -c 1048576 < EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe >> ../files/EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_EHPTlib_MapBased_TestingModels_TestTwoFlange_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)