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/BLDC 1.9.0/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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/BLDC 1.9.0/package.mo): time 0.01148/0.01148, allocations: 2.536 MB / 15.09 MB, free: 204 kB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 177 kB / 16.35 MB, free: 4.016 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 221.4 MB / 238.9 MB, free: 11.41 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009476/0.0009477, allocations: 94.55 kB / 290.4 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.064e-05/3.075e-05, allocations: 4 kB / 349.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2422, allocations: 50.99 MB / 400.3 MB, free: 31.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3418/0.5841, allocations: 112.1 MB / 0.5004 GB, free: 46.32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.5844, allocations: 71.48 kB / 0.5005 GB, free: 46.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1548/0.7391, allocations: 70.48 MB / 0.5693 GB, free: 28.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.7392, allocations: 0 / 0.5693 GB, free: 28.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001559/0.7394, allocations: 69.53 kB / 0.5694 GB, free: 28.12 MB / 378.7 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.005486/0.7448, allocations: 2.607 MB / 0.5719 GB, free: 26.35 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.7449, allocations: 7.75 kB / 0.5719 GB, free: 26.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002693/0.7476, allocations: 0.5238 MB / 0.5724 GB, free: 26.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006938/0.7546, allocations: 2.909 MB / 0.5753 GB, free: 23.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.7547, allocations: 189.1 kB / 0.5755 GB, free: 23.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005141/0.7552, allocations: 255.9 kB / 0.5757 GB, free: 23.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005311/0.7606, allocations: 3.181 MB / 0.5788 GB, free: 19.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-05/0.7607, allocations: 4 kB / 0.5788 GB, free: 19.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/0.761, allocations: 108 kB / 0.5789 GB, free: 19.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/0.7611, allocations: 121 kB / 0.579 GB, free: 19.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003949/0.765, allocations: 2.476 MB / 0.5814 GB, free: 17.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0144/0.7795, allocations: 11.15 MB / 0.5923 GB, free: 5.695 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0028/0.7823, allocations: 3.649 MB / 0.5959 GB, free: 1.535 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001128/0.7835, allocations: 0.7998 MB / 0.5967 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004092/0.7876, allocations: 2.377 MB / 0.599 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.7876, allocations: 43.34 kB / 0.599 GB, free: 14.24 MB / 394.7 MB Notification: Performance of pre-optimization done (n=80): time 4.849e-06/0.7877, allocations: 0 / 0.599 GB, free: 14.24 MB / 394.7 MB Notification: Performance of matching and sorting (n=116): time 0.01068/0.7983, allocations: 4.757 MB / 0.6037 GB, free: 9.418 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007678/0.8061, allocations: 5.014 MB / 0.6086 GB, free: 4.238 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003388/0.8095, allocations: 1.29 MB / 0.6098 GB, free: 2.941 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002482/0.8098, allocations: 49.7 kB / 0.6099 GB, free: 2.887 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.8112, allocations: 1.247 MB / 0.6111 GB, free: 1.625 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005959/0.8118, allocations: 398.2 kB / 0.6115 GB, free: 1.23 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.812, allocations: 32 kB / 0.6115 GB, free: 1.199 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002373/0.8122, allocations: 369.9 kB / 0.6119 GB, free: 0.832 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/0.8137, allocations: 0.578 MB / 0.6124 GB, free: 260 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002029/0.8158, allocations: 1.095 MB / 0.6135 GB, free: 14.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00185/0.8176, allocations: 0.7895 MB / 0.6143 GB, free: 14.13 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.729e-05/0.8177, allocations: 8 kB / 0.6143 GB, free: 14.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=193) (initialization): time 0.004938/0.8226, allocations: 1.947 MB / 0.6162 GB, free: 12.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.8227, allocations: 12 kB / 0.6162 GB, free: 12.15 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.164e-05/0.8227, allocations: 19.98 kB / 0.6162 GB, free: 12.13 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003724/0.8231, allocations: 89.69 kB / 0.6163 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002404/0.8255, allocations: 399.5 kB / 0.6167 GB, free: 11.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.785e-05/0.8256, allocations: 35.86 kB / 0.6167 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002104/0.8277, allocations: 87.88 kB / 0.6168 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001751/0.8279, allocations: 68 kB / 0.6169 GB, free: 11.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003387/0.8283, allocations: 196.4 kB / 0.617 GB, free: 11.26 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004164/0.8287, allocations: 173.9 kB / 0.6172 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005136/0.8338, allocations: 1.797 MB / 0.619 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.841e-05/0.8339, allocations: 12 kB / 0.619 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.8339, allocations: 0 / 0.619 GB, free: 9.262 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.8339, allocations: 3.984 kB / 0.619 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/0.8479, allocations: 5.564 MB / 0.6244 GB, free: 3.578 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/0.848, allocations: 0 / 0.6244 GB, free: 3.578 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.8491, allocations: 179.8 kB / 0.6246 GB, free: 3.402 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001775/0.8509, allocations: 397.7 kB / 0.625 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001093/0.851, allocations: 23.98 kB / 0.625 GB, free: 2.984 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009831/0.8609, allocations: 4.733 MB / 0.6296 GB, free: 14.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01045/0.8714, allocations: 4.87 MB / 0.6344 GB, free: 9.09 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006531/0.878, allocations: 2.852 MB / 0.6372 GB, free: 6.102 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.8793, allocations: 379 kB / 0.6375 GB, free: 5.711 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003362/0.8796, allocations: 24 kB / 0.6375 GB, free: 5.688 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.8809, allocations: 63.92 kB / 0.6376 GB, free: 5.625 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003222/0.8812, allocations: 96.77 kB / 0.6377 GB, free: 5.531 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.8814, allocations: 36.16 kB / 0.6377 GB, free: 5.496 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002605/0.884, allocations: 0.9793 MB / 0.6387 GB, free: 4.52 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.887e-06/0.884, allocations: 0 / 0.6387 GB, free: 4.52 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003398/0.8874, allocations: 0.5546 MB / 0.6392 GB, free: 3.965 MB / 426.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009979/0.8884, allocations: 469 kB / 0.6397 GB, free: 3.504 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003791/0.8922, allocations: 1.652 MB / 0.6413 GB, free: 1.812 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.8923, allocations: 0 / 0.6413 GB, free: 1.812 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002639/0.8949, allocations: 1.077 MB / 0.6423 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003167/0.8981, allocations: 437.5 kB / 0.6428 GB, free: 284 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/0.9088, allocations: 3.748 MB / 0.6464 GB, free: 12.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002653/0.9116, allocations: 1.999 MB / 0.6484 GB, free: 10.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002543/0.9141, allocations: 382.9 kB / 0.6487 GB, free: 10.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006297/0.9148, allocations: 123.4 kB / 0.6489 GB, free: 9.91 MB / 442.7 MB Notification: Performance of SimCode: time 1.463e-06/0.9148, allocations: 0 / 0.6489 GB, free: 9.91 MB / 442.7 MB Notification: Performance of Templates: time 0.3366/1.251, allocations: 28.29 MB / 0.6765 GB, free: 115.8 MB / 458.7 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 -lv LOG_STATS > BLDC_BLDC.Examples.SMPM_NominalOperation.pipe 2>&1)