Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.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 3.0.0-main/package.mo", uses=false) Using package EHPTlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-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.TestTwoFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTlib.MapBased.TestingModels.TestTwoFlange1,fileNamePrefix="EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1",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.006969/0.006969, allocations: 101.7 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.001299/0.0013, allocations: 195 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 3.0.0-main/package.mo): time 0.1383/0.1383, allocations: 8.41 MB / 299 MB, free: 2.008 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00183/0.00183, allocations: 71.88 kB / 413.3 MB, free: 9.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2466, allocations: 51.37 MB / 464.7 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.MapBased.TestingModels.TestTwoFlange1): time 0.005656/0.2523, allocations: 4.426 MB / 469.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.2556, allocations: 2.122 MB / 471.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003991/0.256, allocations: 16.69 kB / 471.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004757/0.2565, allocations: 155.5 kB / 471.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005865/0.2571, allocations: 222.4 kB / 471.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007777/0.2579, allocations: 440.9 kB / 472 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009176/0.2589, allocations: 0.9507 MB / 473 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006408/0.2595, allocations: 0.4962 MB / 473.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004478/0.26, allocations: 371.3 kB / 473.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004934/0.2605, allocations: 411 kB / 474.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.2606, allocations: 108.5 kB / 474.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002245/0.2608, allocations: 135.8 kB / 474.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002196/0.2611, allocations: 240.5 kB / 474.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003646/0.2614, allocations: 469.3 kB / 475.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001369/0.2628, allocations: 1.209 MB / 476.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2628, allocations: 0 / 476.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2628, allocations: 1.375 kB / 476.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.953e-05/0.2629, allocations: 0 / 476.4 MB, free: 10.23 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.001981/0.2648, allocations: 1.274 MB / 477.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.2649, allocations: 13.83 kB / 477.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.265, allocations: 117.1 kB / 477.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001694/0.2652, allocations: 99.98 kB / 477.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008215/0.266, allocations: 0.5719 MB / 478.5 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.553e-05/0.2661, allocations: 57.34 kB / 478.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.2662, allocations: 80.77 kB / 478.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.2676, allocations: 0.7369 MB / 479.3 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/0.2676, allocations: 5.062 kB / 479.3 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.139e-05/0.2677, allocations: 31.75 kB / 479.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.364e-05/0.2677, allocations: 18 kB / 479.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.2689, allocations: 0.5264 MB / 479.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003414/0.2724, allocations: 2.705 MB / 482.6 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.2734, allocations: 471.6 kB / 483.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/0.2738, allocations: 185.5 kB / 483.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.283e-05/0.2739, allocations: 3.344 kB / 483.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005514/0.2744, allocations: 271.4 kB / 483.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 2.144e-06/0.2744, allocations: 0 / 483.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.001636/0.2761, allocations: 0.7407 MB / 484.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.2761, allocations: 134.9 kB / 484.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007238/0.2769, allocations: 0.6814 MB / 485.1 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.2769, allocations: 41.66 kB / 485.1 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.2771, allocations: 396.1 kB / 485.5 MB, free: 3.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.092e-05/0.2772, allocations: 115.6 kB / 485.6 MB, free: 3.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.2774, allocations: 101.2 kB / 485.7 MB, free: 3.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.477e-05/0.2775, allocations: 370.2 kB / 486.1 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004221/0.2779, allocations: 185.6 kB / 486.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004735/0.2784, allocations: 305.6 kB / 486.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008821/0.2793, allocations: 0.5943 MB / 487.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.2793, allocations: 5.094 kB / 487.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001187/0.2805, allocations: 0.6696 MB / 487.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.858e-05/0.2805, allocations: 95.31 kB / 487.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2805, allocations: 3.031 kB / 487.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.2807, allocations: 27.59 kB / 488 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003837/0.2811, allocations: 103.9 kB / 488.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007629/0.2819, allocations: 1.386 MB / 489.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.2824, allocations: 88.5 kB / 489.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.397e-05/0.2824, allocations: 24.11 kB / 489.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005624/0.283, allocations: 362.1 kB / 489.9 MB, free: 340 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004081/0.2834, allocations: 287.6 kB / 490.2 MB, free: 104 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009396/0.2844, allocations: 0.5721 MB / 490.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.925e-06/0.2844, allocations: 1.375 kB / 490.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=59) (initialization_lambda0): time 0.001241/0.2856, allocations: 0.6499 MB / 491.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.866e-05/0.2857, allocations: 90.84 kB / 491.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.2857, allocations: 7.953 kB / 491.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001136/0.2858, allocations: 27.48 kB / 491.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003474/0.2862, allocations: 98 kB / 491.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001064/0.2873, allocations: 1.385 MB / 493 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004936/0.2878, allocations: 70.97 kB / 493.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.2878, allocations: 20.56 kB / 493.1 MB, free: 13.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (55): * Single equations (assignments): 51 * 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.0002567/0.2881, allocations: 271 kB / 493.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.926e-05/0.2882, allocations: 69.86 kB / 493.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.2894, allocations: 0.5286 MB / 494 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.2895, allocations: 14.7 kB / 494 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.224e-06/0.2895, allocations: 5.594 kB / 494 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2895, allocations: 3.984 kB / 494 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002079/0.2916, allocations: 1.275 MB / 495.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.2916, allocations: 0 / 495.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.2919, allocations: 57.33 kB / 495.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.782e-05/0.292, allocations: 23.41 kB / 495.4 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.404e-05/0.292, allocations: 11.81 kB / 495.4 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.2931, allocations: 1.384 MB / 496.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2931, allocations: 0 / 496.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/0.2948, allocations: 0.8278 MB / 497.6 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001519/0.295, allocations: 155.1 kB / 497.7 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.549e-05/0.295, allocations: 12.72 kB / 497.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/0.2954, allocations: 45.62 kB / 497.8 MB, free: 9.797 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.2956, allocations: 29.62 kB / 497.8 MB, free: 9.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.413e-05/0.2956, allocations: 12.12 kB / 497.8 MB, free: 9.777 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000876/0.2965, allocations: 494.8 kB / 498.3 MB, free: 9.508 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2965, allocations: 4 kB / 498.3 MB, free: 9.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008478/0.2973, allocations: 311.6 kB / 498.6 MB, free: 9.418 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 (32): * Single equations (assignments): 27 * 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.003171/0.3005, allocations: 1.633 MB / 0.4885 GB, free: 7.992 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002217/0.3028, allocations: 1.26 MB / 0.4898 GB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.3028, allocations: 0 / 0.4898 GB, free: 6.633 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007067/0.3035, allocations: 458.1 kB / 0.4902 GB, free: 6.148 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005901/0.3041, allocations: 101.4 kB / 0.4903 GB, free: 6.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009155/0.3132, allocations: 6.144 MB / 0.4963 GB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006041/0.3139, allocations: 0.9329 MB / 0.4972 GB, free: 14.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002722/0.3141, allocations: 76.34 kB / 0.4973 GB, free: 14.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003597/0.3145, allocations: 263.3 kB / 0.4975 GB, free: 14.41 MB / 382.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3145, allocations: 0 / 0.4975 GB, free: 14.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08591/0.4004, allocations: 14.4 MB / 0.5116 GB, free: 188 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/10.85, allocations: 11.86 kB / 0.5116 GB, free: 176 kB / 382.1 MB (rm -f EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe ; mkfifo EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe ; head -c 1048576 < EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe >> ../files/EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 EHPTlib_latest_EHPTlib_MapBased_TestingModels_TestTwoFlange1.fmu > EHPTlib_latest_EHPTlib.MapBased.TestingModels.TestTwoFlange1.pipe 2>&1)