Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTlib_latest_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_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange,fileNamePrefix="EHPTlib_latest_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.0007166/0.0007166, allocations: 97.72 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.004055/0.004056, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.308/1.308, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.2174/0.2174, allocations: 8.019 MB / 299.5 MB, free: 3.363 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004227/0.0004229, allocations: 8 kB / 362.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 52.18 MB / 414.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange): time 0.004345/0.1356, allocations: 3.896 MB / 418.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0023/0.138, allocations: 1.419 MB / 420 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002626/0.1382, allocations: 11.94 kB / 420 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003514/0.1386, allocations: 127.3 kB / 420.1 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004189/0.139, allocations: 170.9 kB / 420.3 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006302/0.1397, allocations: 355.1 kB / 420.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007099/0.1404, allocations: 0.7986 MB / 421.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005336/0.1409, allocations: 430.8 kB / 421.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002588/0.1412, allocations: 242.9 kB / 422.1 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003194/0.1415, allocations: 306.4 kB / 422.4 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.564e-05/0.1416, allocations: 36 kB / 422.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.1417, allocations: 63.94 kB / 422.5 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.1419, allocations: 151.4 kB / 422.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002915/0.1422, allocations: 363.7 kB / 423 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007928/0.143, allocations: 1 MB / 424 MB, free: 236 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.143, allocations: 0 / 424 MB, free: 236 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.143, allocations: 0 / 424 MB, free: 236 kB / 350.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.1431, allocations: 0 / 424 MB, free: 236 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.1817/0.3248, allocations: 1.023 MB / 425 MB, free: 41.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.3249, allocations: 7.875 kB / 425 MB, free: 41.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001637/0.325, allocations: 110.8 kB / 425.1 MB, free: 41.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001298/0.3252, allocations: 85.06 kB / 425.2 MB, free: 41.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000619/0.3258, allocations: 0.5118 MB / 425.7 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.708e-05/0.3259, allocations: 52.12 kB / 425.8 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.326, allocations: 73 kB / 425.9 MB, free: 41.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.3272, allocations: 0.721 MB / 426.6 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.3273, allocations: 7.875 kB / 426.6 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.208e-05/0.3273, allocations: 26.75 kB / 426.6 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.3274, allocations: 20.66 kB / 426.6 MB, free: 41.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.3285, allocations: 0.5365 MB / 427.2 MB, free: 41.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003576/0.3321, allocations: 2.607 MB / 429.8 MB, free: 40.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.3332, allocations: 463.8 kB / 430.2 MB, free: 39.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004685/0.3337, allocations: 195.2 kB / 430.4 MB, free: 39.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.347e-05/0.3337, allocations: 6.688 kB / 430.4 MB, free: 39.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006656/0.3344, allocations: 275.7 kB / 430.7 MB, free: 39.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.954e-06/0.3344, allocations: 0 / 430.7 MB, free: 39.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.001652/0.336, allocations: 0.765 MB / 431.5 MB, free: 39.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.219e-05/0.3361, allocations: 138.7 kB / 431.6 MB, free: 39.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000914/0.3371, allocations: 0.5733 MB / 432.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.253e-05/0.3371, allocations: 35.33 kB / 432.2 MB, free: 39.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003258/0.3375, allocations: 354.5 kB / 432.6 MB, free: 39.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.3376, allocations: 109.3 kB / 432.7 MB, free: 39.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.349e-05/0.3377, allocations: 41.75 kB / 432.7 MB, free: 39.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.3379, allocations: 370.3 kB / 433.1 MB, free: 38.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.3383, allocations: 169.6 kB / 433.2 MB, free: 38.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005301/0.3389, allocations: 280.8 kB / 433.5 MB, free: 38.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000978/0.3399, allocations: 0.5802 MB / 434.1 MB, free: 38.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.3399, allocations: 0 / 434.1 MB, free: 38.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001317/0.3412, allocations: 0.6429 MB / 434.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000155/0.3414, allocations: 263 kB / 435 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.3414, allocations: 3.281 kB / 435 MB, free: 37.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002072/0.3416, allocations: 26.67 kB / 435 MB, free: 37.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003465/0.342, allocations: 92.94 kB / 435.1 MB, free: 37.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008529/0.3428, allocations: 1.295 MB / 436.4 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004678/0.3433, allocations: 91.31 kB / 436.5 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.563e-05/0.3434, allocations: 20.72 kB / 436.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.482e-06/0.3434, allocations: 2.969 kB / 436.5 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009626/0.3443, allocations: 0.5543 MB / 437.1 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.3444, allocations: 3.25 kB / 437.1 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.464e-05/0.3445, allocations: 25.19 kB / 437.1 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.3447, allocations: 87.64 kB / 437.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006344/0.3454, allocations: 1.299 MB / 438.5 MB, free: 34.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004335/0.3458, allocations: 81.7 kB / 438.6 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.972e-05/0.3459, allocations: 16.94 kB / 438.6 MB, free: 34.59 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.0004657/0.3463, allocations: 371.4 kB / 438.9 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.08e-05/0.3464, allocations: 52.69 kB / 439 MB, free: 34.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001124/0.3476, allocations: 0.5425 MB / 439.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.3476, allocations: 3.281 kB / 439.5 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3476, allocations: 11.64 kB / 439.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3476, allocations: 0 / 439.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/0.3494, allocations: 1.229 MB / 440.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.3494, allocations: 7.281 kB / 440.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003005/0.3497, allocations: 62.81 kB / 440.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.416e-05/0.3498, allocations: 22.28 kB / 440.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.3499, allocations: 10.59 kB / 440.9 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006487/0.3505, allocations: 1.293 MB / 442.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3505, allocations: 0 / 442.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.352, allocations: 0.8376 MB / 443 MB, free: 31.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.3521, allocations: 139.9 kB / 443.1 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.286e-05/0.3522, allocations: 14.77 kB / 443.2 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003962/0.3526, allocations: 54.89 kB / 443.2 MB, free: 31.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.3527, allocations: 36.08 kB / 443.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.3527, allocations: 9.188 kB / 443.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004198/0.3532, allocations: 418.9 kB / 443.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3532, allocations: 1.594 kB / 443.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008171/0.354, allocations: 284.6 kB / 443.9 MB, free: 31.1 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.002467/0.3565, allocations: 1.642 MB / 445.6 MB, free: 30.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001862/0.3583, allocations: 1.236 MB / 446.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3584, allocations: 64 / 446.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005691/0.3589, allocations: 459.1 kB / 447.3 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006303/0.3596, allocations: 87.45 kB / 447.3 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007719/0.3673, allocations: 6.022 MB / 453.4 MB, free: 25.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000364/0.3677, allocations: 0.9032 MB / 454.3 MB, free: 24.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002845/0.368, allocations: 63.33 kB / 454.3 MB, free: 24.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002742/0.3683, allocations: 232.8 kB / 454.6 MB, free: 24.48 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3683, allocations: 0 / 454.6 MB, free: 24.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02739/0.3957, allocations: 11.99 MB / 466.6 MB, free: 23.52 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.3959, allocations: 263.5 kB / 466.8 MB, free: 23.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.135/2.531, allocations: 0 / 466.8 MB, free: 23.26 MB / 350.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange.pipe 2>&1)