Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.SMPM_NominalOperation.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/BLDC 1.9.0/package.mo", uses=false) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") translateModel(BLDC.Examples.SMPM_NominalOperation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.SMPM_NominalOperation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 104.3 kB / 16.35 MB, free: 5.824 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.00171/0.00171, allocations: 190.8 kB / 17.29 MB, free: 5.48 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01241/0.01241, allocations: 2.586 MB / 293.7 MB, free: 12.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001774/0.001774, allocations: 91.84 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2152, allocations: 50.05 MB / 405.5 MB, free: 33.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.SMPM_NominalOperation): time 0.01152/0.2268, allocations: 14.13 MB / 419.6 MB, free: 19.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008876/0.2357, allocations: 4.986 MB / 424.6 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/0.2383, allocations: 83.69 kB / 424.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00256/0.2408, allocations: 1.04 MB / 425.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00278/0.2437, allocations: 1.153 MB / 426.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001429/0.2452, allocations: 0.7777 MB / 427.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002776/0.248, allocations: 3.168 MB / 430.9 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00205/0.25, allocations: 2.651 MB / 433.5 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001173/0.2512, allocations: 1.355 MB / 434.9 MB, free: 3.734 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001263/0.2525, allocations: 1.63 MB / 436.5 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000307/0.2528, allocations: 388 kB / 436.9 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007653/0.2536, allocations: 0.5779 MB / 437.4 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004674/0.254, allocations: 0.8687 MB / 438.3 MB, free: 276 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.2555, allocations: 1.661 MB / 440 MB, free: 14.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004773/0.2603, allocations: 5.119 MB / 445.1 MB, free: 9.469 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2603, allocations: 0 / 445.1 MB, free: 9.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.2604, allocations: 0 / 445.1 MB, free: 9.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001105/0.2605, allocations: 3.938 kB / 445.1 MB, free: 9.465 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 673 * Number of variables: 673 Notification: Performance of Generate backend data structure: time 0.00778/0.2683, allocations: 3.482 MB / 448.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2683, allocations: 15.97 kB / 448.6 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00261/0.2709, allocations: 0.5517 MB / 449.2 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003306/0.2742, allocations: 1.843 MB / 451 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001321/0.2744, allocations: 197.5 kB / 451.2 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003914/0.2748, allocations: 252.1 kB / 451.4 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005263/0.2801, allocations: 3.281 MB / 454.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-05/0.2801, allocations: 11.83 kB / 454.7 MB, free: 15.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002192/0.2804, allocations: 108 kB / 454.8 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.2805, allocations: 117 kB / 454.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004241/0.2847, allocations: 2.714 MB / 457.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01433/0.2991, allocations: 10.82 MB / 468.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003338/0.3025, allocations: 3.604 MB / 472.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.3037, allocations: 0.8309 MB / 472.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00389/0.3076, allocations: 2.4 MB / 475.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.3077, allocations: 43.22 kB / 475.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.344e-06/0.3077, allocations: 0 / 475.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=117): time 0.01011/0.3178, allocations: 5.292 MB / 480.7 MB, free: 4.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007009/0.3248, allocations: 5.17 MB / 485.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002069/0.3269, allocations: 1.532 MB / 487.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001154/0.3271, allocations: 45.7 kB / 487.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008029/0.3279, allocations: 1.247 MB / 488.6 MB, free: 12.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003022/0.3282, allocations: 406.2 kB / 489 MB, free: 12.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004037/0.3286, allocations: 279.2 kB / 489.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.365e-05/0.3287, allocations: 301.1 kB / 489.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008696/0.3296, allocations: 0.613 MB / 490.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001194/0.3308, allocations: 1.138 MB / 491.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/0.333, allocations: 1.894 MB / 493.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.333, allocations: 4 kB / 493.3 MB, free: 7.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002927/0.3359, allocations: 2.02 MB / 495.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.336, allocations: 12 kB / 495.3 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.971e-05/0.336, allocations: 20 kB / 495.3 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002528/0.3362, allocations: 93.67 kB / 495.4 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.3376, allocations: 395.8 kB / 495.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.79e-05/0.3377, allocations: 39.86 kB / 495.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.3387, allocations: 87.92 kB / 495.9 MB, free: 4.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001016/0.3388, allocations: 64 kB / 496 MB, free: 4.578 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (193): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001199/0.34, allocations: 0.8173 MB / 496.8 MB, free: 3.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.3403, allocations: 169.9 kB / 497 MB, free: 3.582 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003114/0.3434, allocations: 1.828 MB / 498.8 MB, free: 1.734 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3434, allocations: 12.09 kB / 498.8 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.3434, allocations: 0 / 498.8 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/0.3434, allocations: 7.969 kB / 498.8 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008601/0.352, allocations: 5.635 MB / 0.4926 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.3521, allocations: 4 kB / 0.4926 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007368/0.3528, allocations: 179.7 kB / 0.4928 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.3539, allocations: 397.7 kB / 0.4932 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.157e-05/0.354, allocations: 27.98 kB / 0.4932 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00676/0.3608, allocations: 5.161 MB / 0.4982 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006778/0.3676, allocations: 5.065 MB / 0.5032 GB, free: 0.832 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1637/0.5312, allocations: 2.749 MB / 0.5059 GB, free: 94.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007289/0.532, allocations: 392.6 kB / 0.5062 GB, free: 94.77 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.5322, allocations: 23.31 kB / 0.5063 GB, free: 94.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007581/0.533, allocations: 59.23 kB / 0.5063 GB, free: 94.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002017/0.5332, allocations: 98 kB / 0.5064 GB, free: 94.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.282e-05/0.5332, allocations: 37.73 kB / 0.5065 GB, free: 94.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001257/0.5345, allocations: 1.034 MB / 0.5075 GB, free: 94.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5345, allocations: 0 / 0.5075 GB, free: 94.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001425/0.5359, allocations: 0.5075 MB / 0.508 GB, free: 94.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002283/0.5362, allocations: 150.5 kB / 0.5081 GB, free: 94.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.5386, allocations: 1.724 MB / 0.5098 GB, free: 93.65 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.5386, allocations: 0 / 0.5098 GB, free: 93.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001354/0.54, allocations: 1.119 MB / 0.5109 GB, free: 93.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/0.5417, allocations: 471.5 kB / 0.5113 GB, free: 92.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005961/0.5476, allocations: 4.709 MB / 0.5159 GB, free: 90.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001089/0.5488, allocations: 1.959 MB / 0.5178 GB, free: 89.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009985/0.5498, allocations: 379.4 kB / 0.5182 GB, free: 89.62 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.5501, allocations: 122.3 kB / 0.5183 GB, free: 89.61 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5501, allocations: 0 / 0.5183 GB, free: 89.61 MB / 382.1 MB Notification: Performance of Templates: time 0.03496/0.585, allocations: 26.42 MB / 0.5441 GB, free: 65.45 MB / 382.1 MB make -j1 -f BLDC_BLDC.Examples.SMPM_NominalOperation.makefile (rm -f BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; mkfifo BLDC_BLDC.Examples.SMPM_NominalOperation.pipe ; head -c 1048576 < BLDC_BLDC.Examples.SMPM_NominalOperation.pipe >> ../files/BLDC_BLDC.Examples.SMPM_NominalOperation.sim & ./BLDC_BLDC.Examples.SMPM_NominalOperation -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)