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/package.mo", uses=false) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4/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.004782/0.004782, allocations: 101.6 kB / 15.73 MB, free: 6.059 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.001284/0.001284, allocations: 195.1 kB / 16.68 MB, free: 5.969 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4/package.mo): time 0.1399/0.1399, allocations: 8.011 MB / 298.6 MB, free: 2.312 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 63.88 kB / 412.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2282, allocations: 51.19 MB / 463.8 MB, free: 17.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.004895/0.2332, allocations: 4.298 MB / 468.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.2352, allocations: 1.449 MB / 469.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002593/0.2354, allocations: 19.91 kB / 469.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004096/0.2359, allocations: 159.2 kB / 469.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.2364, allocations: 210.1 kB / 469.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006302/0.237, allocations: 402.1 kB / 470.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007555/0.2378, allocations: 0.8875 MB / 471.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005469/0.2383, allocations: 482.8 kB / 471.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002985/0.2386, allocations: 345.8 kB / 472 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003651/0.239, allocations: 381 kB / 472.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.2391, allocations: 100.6 kB / 472.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001987/0.2393, allocations: 129.5 kB / 472.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001838/0.2395, allocations: 217 kB / 472.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003214/0.2398, allocations: 429.2 kB / 473.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001042/0.2409, allocations: 1.1 MB / 474.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2409, allocations: 1.875 kB / 474.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2409, allocations: 0 / 474.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.2409, allocations: 0 / 474.3 MB, free: 11.38 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.001621/0.2425, allocations: 1.179 MB / 475.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.2426, allocations: 9.625 kB / 475.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.2427, allocations: 114.8 kB / 475.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00012/0.2428, allocations: 95 kB / 475.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005985/0.2434, allocations: 0.5188 MB / 476.2 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.153e-05/0.2435, allocations: 50.88 kB / 476.3 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.041e-05/0.2436, allocations: 72.27 kB / 476.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001243/0.2448, allocations: 0.7059 MB / 477 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.2449, allocations: 5.828 kB / 477.1 MB, free: 9.613 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.657e-05/0.2449, allocations: 31.83 kB / 477.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.245, allocations: 16.81 kB / 477.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001124/0.2461, allocations: 0.5049 MB / 477.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/0.2491, allocations: 2.545 MB / 480.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008899/0.25, allocations: 442 kB / 480.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003865/0.2504, allocations: 185 kB / 480.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.2505, allocations: 7.703 kB / 480.8 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005176/0.251, allocations: 262.8 kB / 481 MB, free: 7.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.563e-06/0.251, allocations: 0 / 481 MB, free: 7.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001536/0.2526, allocations: 0.7119 MB / 481.7 MB, free: 6.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.2526, allocations: 138.3 kB / 481.9 MB, free: 6.457 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005664/0.2532, allocations: 0.5807 MB / 482.5 MB, free: 6.121 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.932e-05/0.2532, allocations: 37.33 kB / 482.5 MB, free: 6.082 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.2534, allocations: 358.7 kB / 482.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.557e-05/0.2535, allocations: 117.9 kB / 483 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.2536, allocations: 82.91 kB / 483 MB, free: 5.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.838e-05/0.2537, allocations: 368.3 kB / 483.4 MB, free: 5.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003945/0.2541, allocations: 163.2 kB / 483.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.2545, allocations: 254.1 kB / 483.8 MB, free: 4.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008044/0.2553, allocations: 0.5545 MB / 484.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.2553, allocations: 1.281 kB / 484.4 MB, free: 4.523 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001085/0.2564, allocations: 0.607 MB / 485 MB, free: 4.148 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.028e-05/0.2565, allocations: 94.69 kB / 485.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.2565, allocations: 3.594 kB / 485.1 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001389/0.2566, allocations: 25.69 kB / 485.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003158/0.2569, allocations: 80.3 kB / 485.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008068/0.2578, allocations: 1.392 MB / 486.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004521/0.2582, allocations: 82.91 kB / 486.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.871e-05/0.2583, allocations: 18.09 kB / 486.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000592/0.2589, allocations: 323 kB / 487 MB, free: 2.309 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004444/0.2593, allocations: 247.2 kB / 487.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008773/0.2602, allocations: 0.517 MB / 487.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.933e-06/0.2602, allocations: 1.375 kB / 487.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization_lambda0): time 0.001193/0.2614, allocations: 0.5856 MB / 488.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.646e-05/0.2615, allocations: 97.78 kB / 488.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2615, allocations: 2.562 kB / 488.4 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.916e-05/0.2616, allocations: 30.03 kB / 488.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.2619, allocations: 74.48 kB / 488.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009239/0.2629, allocations: 1.403 MB / 489.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/0.2633, allocations: 59.03 kB / 490 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-05/0.2634, allocations: 21.36 kB / 490 MB, free: 15.69 MB / 366.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.0002873/0.2637, allocations: 270.1 kB / 490.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.2638, allocations: 58.02 kB / 490.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.2651, allocations: 0.5094 MB / 490.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2651, allocations: 4.125 kB / 490.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2651, allocations: 0 / 490.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.2651, allocations: 9.312 kB / 490.8 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002025/0.2671, allocations: 1.188 MB / 492 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2671, allocations: 0 / 492 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/0.2675, allocations: 63.73 kB / 492.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.332e-05/0.2676, allocations: 22.94 kB / 492.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/0.2676, allocations: 8.406 kB / 492.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001247/0.2689, allocations: 1.385 MB / 493.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2689, allocations: 1.344 kB / 493.5 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.2707, allocations: 0.7963 MB / 494.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001591/0.2708, allocations: 142.3 kB / 494.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.551e-05/0.2709, allocations: 13.42 kB / 494.5 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003967/0.2713, allocations: 53.44 kB / 494.5 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.2715, allocations: 28.81 kB / 494.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.2715, allocations: 11.64 kB / 494.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006453/0.2721, allocations: 418.1 kB / 495 MB, free: 11.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2722, allocations: 3.938 kB / 495 MB, free: 11.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001098/0.2733, allocations: 296.4 kB / 495.2 MB, free: 11.64 MB / 366.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.003593/0.2769, allocations: 1.579 MB / 496.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002263/0.2791, allocations: 1.204 MB / 498 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-05/0.2792, allocations: 0 / 498 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.2799, allocations: 432.2 kB / 498.5 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005939/0.2805, allocations: 87.06 kB / 498.5 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008439/0.2889, allocations: 5.489 MB / 0.4922 GB, free: 3.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006065/0.2896, allocations: 0.9095 MB / 0.4931 GB, free: 2.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002661/0.2899, allocations: 64.14 kB / 0.4932 GB, free: 2.785 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.2902, allocations: 231.4 kB / 0.4934 GB, free: 2.562 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2902, allocations: 0 / 0.4934 GB, free: 2.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04391/0.3341, allocations: 13.19 MB / 0.5063 GB, free: 5.508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.59, allocations: 3.938 kB / 0.5063 GB, free: 5.504 MB / 382.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)