Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental.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 main/package.mo", uses=false) Using package EHPTlib with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 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: translateModel(EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental") translateModel(EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008892/0.0008894, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009948/0.0009947, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.2 MB / 239.9 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib main/package.mo): time 0.1436/0.1436, allocations: 8.606 MB / 299.6 MB, free: 3.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002684/0.0002684, allocations: 8 kB / 362.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09456, allocations: 52.32 MB / 414.7 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental): time 0.002398/0.09703, allocations: 1.76 MB / 416.5 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008939/0.09794, allocations: 0.5848 MB / 417.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.406e-05/0.09805, allocations: 11.94 kB / 417.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.264e-05/0.09809, allocations: 15.84 kB / 417.1 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.09831, allocations: 47.83 kB / 417.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.09854, allocations: 95.81 kB / 417.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.09877, allocations: 167.4 kB / 417.4 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.09891, allocations: 48.56 kB / 417.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.252e-05/0.09901, allocations: 87.61 kB / 417.5 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001849/0.0992, allocations: 107.6 kB / 417.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.889e-05/0.09924, allocations: 8 kB / 417.7 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.799e-05/0.09927, allocations: 16 kB / 417.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.46e-05/0.09932, allocations: 43.81 kB / 417.7 MB, free: 6.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.148e-05/0.09937, allocations: 53.58 kB / 417.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.09953, allocations: 155.8 kB / 417.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.09954, allocations: 0 / 417.9 MB, free: 5.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.09955, allocations: 4 kB / 417.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.09956, allocations: 0 / 417.9 MB, free: 5.961 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0009734/0.1005, allocations: 0.5296 MB / 418.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1006, allocations: 19.97 kB / 418.5 MB, free: 5.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.004e-05/0.1007, allocations: 27.62 kB / 418.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.1009, allocations: 238.6 kB / 418.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.726e-05/0.101, allocations: 53.69 kB / 418.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.796e-05/0.1011, allocations: 12 kB / 418.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.1016, allocations: 283 kB / 419.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.1016, allocations: 0 / 419.1 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.815e-05/0.1016, allocations: 7.953 kB / 419.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.1017, allocations: 4 kB / 419.1 MB, free: 4.691 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004918/0.1022, allocations: 255.3 kB / 419.3 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.1033, allocations: 0.7186 MB / 420.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/0.1046, allocations: 470.4 kB / 420.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.1046, allocations: 15.91 kB / 420.5 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.1046, allocations: 34.56 kB / 420.6 MB, free: 3.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.1046, allocations: 4 kB / 420.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.007675/0.1123, allocations: 2.014 MB / 422.6 MB, free: 1.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.026e-05/0.1124, allocations: 81.11 kB / 422.7 MB, free: 1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.1126, allocations: 199.8 kB / 422.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/0.1126, allocations: 33.64 kB / 422.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.617e-05/0.1127, allocations: 144.3 kB / 423 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.172e-05/0.1128, allocations: 86.73 kB / 423.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-05/0.1128, allocations: 12 kB / 423.1 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1129, allocations: 326.8 kB / 423.4 MB, free: 184 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003196/0.1132, allocations: 144.1 kB / 423.6 MB, free: 40 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1756/0.2888, allocations: 158.4 kB / 423.7 MB, free: 41.17 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.2892, allocations: 143.8 kB / 423.9 MB, free: 41.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.2892, allocations: 0 / 423.9 MB, free: 41.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.003384/0.2926, allocations: 1.08 MB / 425 MB, free: 41.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.2927, allocations: 91.75 kB / 425.1 MB, free: 41.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2927, allocations: 2.906 kB / 425.1 MB, free: 41.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/0.2948, allocations: 498.3 kB / 425.5 MB, free: 41.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.295, allocations: 62.72 kB / 425.6 MB, free: 41.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00747/0.3025, allocations: 4.155 MB / 429.8 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.3028, allocations: 45.16 kB / 429.8 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.259e-05/0.3028, allocations: 14.03 kB / 429.8 MB, free: 39.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/0.3028, allocations: 3.125 kB / 429.8 MB, free: 39.56 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002983/0.3058, allocations: 0.9232 MB / 430.7 MB, free: 39.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3058, allocations: 0 / 430.7 MB, free: 39.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.3078, allocations: 454 kB / 431.2 MB, free: 39.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.308, allocations: 69.44 kB / 431.3 MB, free: 39.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006491/0.3145, allocations: 3.875 MB / 435.1 MB, free: 37.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.3148, allocations: 38.55 kB / 435.2 MB, free: 37.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.3148, allocations: 14.83 kB / 435.2 MB, free: 37.98 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: pi.x:VARIABLE(start = pi.x_start fixed = true ) "State of block" type: Real firstOrder1.y:VARIABLE(flow=false start = firstOrder1.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (limiting.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001614/0.315, allocations: 220.5 kB / 435.4 MB, free: 37.78 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.496e-05/0.315, allocations: 21.98 kB / 435.4 MB, free: 37.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003151/0.3182, allocations: 1.115 MB / 436.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.3182, allocations: 4.25 kB / 436.5 MB, free: 37.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.3182, allocations: 7.938 kB / 436.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.3182, allocations: 0 / 436.5 MB, free: 37.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.3186, allocations: 375 kB / 436.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3186, allocations: 3.953 kB / 436.9 MB, free: 37.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.3188, allocations: 56.69 kB / 437 MB, free: 37.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001962/0.3208, allocations: 0.5011 MB / 437.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/0.3208, allocations: 6.297 kB / 437.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007328/0.3281, allocations: 4.331 MB / 441.8 MB, free: 35.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.3282, allocations: 5.875 kB / 441.8 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003517/0.3317, allocations: 1.367 MB / 443.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.912e-05/0.3318, allocations: 106 kB / 443.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.3319, allocations: 15.7 kB / 443.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.3321, allocations: 44.06 kB / 443.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001412/0.3323, allocations: 51.77 kB / 443.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.3323, allocations: 3.406 kB / 443.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.364e-05/0.3324, allocations: 149.5 kB / 443.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3324, allocations: 0 / 443.5 MB, free: 34.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006823/0.3331, allocations: 156.1 kB / 443.7 MB, free: 34.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,pi.x) * Number of discrete variables: 1 (limiting.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001026/0.3332, allocations: 100.1 kB / 443.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002744/0.3359, allocations: 1.282 MB / 445.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.336, allocations: 0 / 445.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001288/0.3373, allocations: 0.6194 MB / 445.7 MB, free: 33.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003409/0.3376, allocations: 38.58 kB / 445.7 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.3387, allocations: 0.6731 MB / 446.4 MB, free: 33.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.339, allocations: 0.7714 MB / 447.2 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.585e-05/0.339, allocations: 23.56 kB / 447.2 MB, free: 32.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/0.3391, allocations: 13.5 kB / 447.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3391, allocations: 0 / 447.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of Templates: time 0.01281/0.3519, allocations: 8.671 MB / 455.9 MB, free: 31.93 MB / 350.1 MB make -j1 -f EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental.makefile (rm -f EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental.pipe ; mkfifo EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental.pipe ; head -c 1048576 < EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental.pipe >> ../files/EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental.sim & ./EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental -abortSlowSimulation -alarm=480 -lv LOG_STATS > EHPTlib_main_EHPTlib.ElectricDrives.SMArelated.MTPAalExperimental.pipe 2>&1)