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.01122/0.01122, allocations: 2.578 MB / 18.53 MB, free: 3.18 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007825/0.0007826, allocations: 184.8 kB / 20 MB, free: 1.707 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.377/1.377, allocations: 223.3 MB / 244.6 MB, free: 6.672 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.0008054/0.0008053, allocations: 98.94 kB / 296.4 MB, free: 7.723 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005113/0.0005114, allocations: 20 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.244, allocations: 51.01 MB / 409.1 MB, free: 28.88 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4007/0.6447, allocations: 112.4 MB / 0.5092 GB, free: 97.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.645, allocations: 79.42 kB / 0.5093 GB, free: 97.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1568/0.8019, allocations: 70.25 MB / 0.5779 GB, free: 36.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.8019, allocations: 0 / 0.5779 GB, free: 36.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003073/0.8023, allocations: 67.94 kB / 0.578 GB, free: 36.46 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.01033/0.8126, allocations: 2.85 MB / 0.5808 GB, free: 33.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.8127, allocations: 8.031 kB / 0.5808 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003118/0.8158, allocations: 0.5283 MB / 0.5813 GB, free: 33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005505/0.8213, allocations: 2.252 MB / 0.5835 GB, free: 30.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.8215, allocations: 189.5 kB / 0.5837 GB, free: 30.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007775/0.8223, allocations: 256.3 kB / 0.5839 GB, free: 30.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005456/0.8278, allocations: 3.242 MB / 0.5871 GB, free: 26.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.932e-05/0.8279, allocations: 11.92 kB / 0.5871 GB, free: 26.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002095/0.8281, allocations: 112 kB / 0.5872 GB, free: 26.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.701e-05/0.8282, allocations: 117 kB / 0.5873 GB, free: 26.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003875/0.8321, allocations: 2.526 MB / 0.5898 GB, free: 24.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01438/0.8465, allocations: 11.16 MB / 0.6007 GB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/0.8492, allocations: 3.677 MB / 0.6043 GB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.8503, allocations: 0.8114 MB / 0.605 GB, free: 7.535 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003634/0.8539, allocations: 2.396 MB / 0.6074 GB, free: 5.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.854, allocations: 47.22 kB / 0.6074 GB, free: 5.016 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.745e-06/0.854, allocations: 0 / 0.6074 GB, free: 5.016 MB / 378.7 MB Notification: Performance of matching and sorting (n=117): time 0.01012/0.8641, allocations: 5.253 MB / 0.6126 GB, free: 15.68 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007586/0.8718, allocations: 5.038 MB / 0.6175 GB, free: 10.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002293/0.8741, allocations: 1.482 MB / 0.6189 GB, free: 8.988 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001614/0.8743, allocations: 41.7 kB / 0.619 GB, free: 8.941 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008682/0.8751, allocations: 1.243 MB / 0.6202 GB, free: 7.684 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003294/0.8755, allocations: 414.1 kB / 0.6206 GB, free: 7.273 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.839e-05/0.8756, allocations: 28 kB / 0.6206 GB, free: 7.246 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.8757, allocations: 369.9 kB / 0.621 GB, free: 6.879 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008771/0.8766, allocations: 0.5935 MB / 0.6215 GB, free: 6.285 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001173/0.8778, allocations: 1.114 MB / 0.6226 GB, free: 4.938 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002242/0.88, allocations: 1.87 MB / 0.6244 GB, free: 2.836 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.88, allocations: 4 kB / 0.6245 GB, free: 2.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=194) (initialization): time 0.00328/0.8833, allocations: 1.981 MB / 0.6264 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.8834, allocations: 12 kB / 0.6264 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.8834, allocations: 16 kB / 0.6264 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.8837, allocations: 98.14 kB / 0.6265 GB, free: 0.707 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.8851, allocations: 399.3 kB / 0.6269 GB, free: 324 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.378e-05/0.8852, allocations: 39.84 kB / 0.6269 GB, free: 284 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.8865, allocations: 83.94 kB / 0.627 GB, free: 200 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.8867, allocations: 71.98 kB / 0.6271 GB, free: 128 kB / 394.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 190 * 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.001966/0.8886, allocations: 0.8135 MB / 0.6279 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005091/0.8892, allocations: 169.9 kB / 0.628 GB, free: 15.13 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003364/0.8925, allocations: 1.828 MB / 0.6298 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.8926, allocations: 11.98 kB / 0.6298 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.8926, allocations: 4 kB / 0.6298 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.8926, allocations: 3.984 kB / 0.6298 GB, free: 13.26 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00904/0.9017, allocations: 5.58 MB / 0.6353 GB, free: 7.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.9017, allocations: 7.938 kB / 0.6353 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007753/0.9025, allocations: 184 kB / 0.6355 GB, free: 7.383 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.9036, allocations: 397.4 kB / 0.6358 GB, free: 6.988 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-05/0.9037, allocations: 24 kB / 0.6359 GB, free: 6.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0066/0.9103, allocations: 4.763 MB / 0.6405 GB, free: 2.059 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006843/0.9172, allocations: 4.918 MB / 0.6453 GB, free: 13 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004532/0.9218, allocations: 2.735 MB / 0.648 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.9229, allocations: 383 kB / 0.6484 GB, free: 9.805 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001859/0.9231, allocations: 24 kB / 0.6484 GB, free: 9.781 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007725/0.9239, allocations: 63.92 kB / 0.6484 GB, free: 9.719 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002399/0.9241, allocations: 92.81 kB / 0.6485 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.976e-05/0.9242, allocations: 35.98 kB / 0.6486 GB, free: 9.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001608/0.9258, allocations: 0.9997 MB / 0.6495 GB, free: 8.594 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9258, allocations: 0 / 0.6495 GB, free: 8.594 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002071/0.9279, allocations: 0.5585 MB / 0.6501 GB, free: 8.035 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 () * 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 (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.0006531/0.9286, allocations: 408.8 kB / 0.6505 GB, free: 7.629 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.9313, allocations: 1.687 MB / 0.6521 GB, free: 5.902 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.163e-06/0.9313, allocations: 4 kB / 0.6521 GB, free: 5.898 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001806/0.9331, allocations: 1.105 MB / 0.6532 GB, free: 4.762 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002782/0.9359, allocations: 450.8 kB / 0.6536 GB, free: 4.324 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009168/0.9451, allocations: 5.633 MB / 0.6591 GB, free: 14.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001919/0.9471, allocations: 1.953 MB / 0.661 GB, free: 12.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001705/0.9488, allocations: 386.9 kB / 0.6614 GB, free: 12.24 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003676/0.9492, allocations: 123.4 kB / 0.6615 GB, free: 12.12 MB / 442.7 MB Notification: Performance of SimCode: time 5.21e-07/0.9492, allocations: 4 kB / 0.6615 GB, free: 12.12 MB / 442.7 MB Notification: Performance of Templates: time 0.2775/1.227, allocations: 27.95 MB / 0.6888 GB, free: 100.1 MB / 442.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)