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.01957/0.01957, allocations: 2.538 MB / 10.01 MB, free: 380 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 180.7 kB / 11.18 MB, free: 1.457 MB / 7.832 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.269/1.269, allocations: 221.5 MB / 233.7 MB, free: 232 kB / 186.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008193/0.0008193, allocations: 106.2 kB / 285.2 MB, free: 14.48 MB / 234.9 MB Notification: Performance of FrontEnd - loaded program: time 1.26e-05/1.262e-05, allocations: 4 kB / 342.4 MB, free: 5.238 MB / 282.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2303, allocations: 50.99 MB / 393.4 MB, free: 35.52 MB / 298.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1187/0.3491, allocations: 111.5 MB / 0.493 GB, free: 3.867 MB / 378.9 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001732/0.3493, allocations: 76.77 kB / 0.4931 GB, free: 3.793 MB / 378.9 MB Notification: Performance of FrontEnd - DAE generated: time 0.3647/0.714, allocations: 69.47 MB / 0.561 GB, free: 49.67 MB / 378.9 MB Notification: Performance of FrontEnd: time 1.403e-06/0.714, allocations: 0 / 0.561 GB, free: 49.67 MB / 378.9 MB Notification: Performance of Transformations before backend: time 0.0002029/0.7143, allocations: 71.92 kB / 0.561 GB, free: 49.6 MB / 378.9 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.006032/0.7203, allocations: 2.598 MB / 0.5636 GB, free: 46.94 MB / 378.9 MB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.7203, allocations: 12.02 kB / 0.5636 GB, free: 46.93 MB / 378.9 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002595/0.7229, allocations: 0.5277 MB / 0.5641 GB, free: 46.4 MB / 378.9 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006455/0.7294, allocations: 2.899 MB / 0.5669 GB, free: 43.44 MB / 378.9 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.7296, allocations: 87.98 kB / 0.567 GB, free: 43.35 MB / 378.9 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000623/0.7302, allocations: 151.9 kB / 0.5671 GB, free: 43.2 MB / 378.9 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004039/0.7343, allocations: 2.303 MB / 0.5694 GB, free: 40.89 MB / 378.9 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00433/0.7386, allocations: 2.809 MB / 0.5721 GB, free: 37.95 MB / 378.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-05/0.7387, allocations: 0 / 0.5721 GB, free: 37.95 MB / 378.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001903/0.7389, allocations: 4 kB / 0.5721 GB, free: 37.94 MB / 378.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.03e-05/0.739, allocations: 121 kB / 0.5723 GB, free: 37.82 MB / 378.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01292/0.7519, allocations: 10.63 MB / 0.5826 GB, free: 26.82 MB / 378.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002485/0.7544, allocations: 3.618 MB / 0.5862 GB, free: 22.69 MB / 378.9 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.7555, allocations: 0.7811 MB / 0.5869 GB, free: 21.91 MB / 378.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003338/0.7588, allocations: 2.309 MB / 0.5892 GB, free: 19.53 MB / 378.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.7589, allocations: 43.28 kB / 0.5892 GB, free: 19.48 MB / 378.9 MB Notification: Performance of pre-optimization done (n=82): time 2.735e-06/0.7589, allocations: 0 / 0.5892 GB, free: 19.48 MB / 378.9 MB Notification: Performance of matching and sorting (n=120): time 0.009612/0.7685, allocations: 4.912 MB / 0.594 GB, free: 14.5 MB / 378.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.7686, allocations: 64.72 kB / 0.5941 GB, free: 14.42 MB / 378.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.77, allocations: 1.044 MB / 0.5951 GB, free: 13.37 MB / 378.9 MB Notification: Performance of collectPreVariables (initialization): time 8.582e-05/0.7701, allocations: 33.64 kB / 0.5951 GB, free: 13.33 MB / 378.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004813/0.7706, allocations: 1.257 MB / 0.5964 GB, free: 12.05 MB / 378.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002087/0.7708, allocations: 398.1 kB / 0.5967 GB, free: 11.66 MB / 378.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.183e-05/0.7709, allocations: 0 / 0.5967 GB, free: 11.66 MB / 378.9 MB Notification: Performance of setup shared object (initialization): time 7.522e-05/0.771, allocations: 365.9 kB / 0.5971 GB, free: 11.3 MB / 378.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006465/0.7716, allocations: 0.5663 MB / 0.5976 GB, free: 10.73 MB / 378.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007983/0.7724, allocations: 1.068 MB / 0.5987 GB, free: 9.43 MB / 378.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.7736, allocations: 0.861 MB / 0.5995 GB, free: 8.574 MB / 378.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.7736, allocations: 4 kB / 0.5995 GB, free: 8.57 MB / 378.9 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.002877/0.7765, allocations: 1.888 MB / 0.6014 GB, free: 6.668 MB / 378.9 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.7765, allocations: 12 kB / 0.6014 GB, free: 6.656 MB / 378.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.7766, allocations: 16 kB / 0.6014 GB, free: 6.641 MB / 378.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002383/0.7768, allocations: 93.67 kB / 0.6015 GB, free: 6.543 MB / 378.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.7782, allocations: 399.8 kB / 0.6019 GB, free: 6.152 MB / 378.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.066e-05/0.7782, allocations: 35.86 kB / 0.6019 GB, free: 6.117 MB / 378.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001113/0.7793, allocations: 55.84 kB / 0.602 GB, free: 6.062 MB / 378.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.7794, allocations: 75.98 kB / 0.602 GB, free: 5.988 MB / 378.9 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 (195): * Single equations (assignments): 193 * 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.0002033/0.7796, allocations: 164.3 kB / 0.6022 GB, free: 5.82 MB / 378.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001935/0.7798, allocations: 150.1 kB / 0.6023 GB, free: 5.672 MB / 378.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002925/0.7828, allocations: 1.798 MB / 0.6041 GB, free: 3.852 MB / 378.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.7828, allocations: 12 kB / 0.6041 GB, free: 3.84 MB / 378.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.7828, allocations: 4 kB / 0.6041 GB, free: 3.836 MB / 378.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.7828, allocations: 3.984 kB / 0.6041 GB, free: 3.832 MB / 378.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007741/0.7906, allocations: 5.344 MB / 0.6093 GB, free: 14.36 MB / 394.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.7906, allocations: 4 kB / 0.6093 GB, free: 14.36 MB / 394.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007564/0.7914, allocations: 183.7 kB / 0.6095 GB, free: 14.18 MB / 394.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.7925, allocations: 397.7 kB / 0.6099 GB, free: 13.79 MB / 394.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.329e-05/0.7926, allocations: 8 kB / 0.6099 GB, free: 13.78 MB / 394.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006123/0.7987, allocations: 4.673 MB / 0.6145 GB, free: 8.977 MB / 394.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006381/0.8051, allocations: 4.811 MB / 0.6192 GB, free: 4.039 MB / 394.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004315/0.8095, allocations: 2.893 MB / 0.622 GB, free: 1 MB / 394.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007813/0.8103, allocations: 363.1 kB / 0.6223 GB, free: 0.625 MB / 394.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.8105, allocations: 4 kB / 0.6223 GB, free: 0.6211 MB / 394.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007356/0.8112, allocations: 43.94 kB / 0.6224 GB, free: 0.5781 MB / 394.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001954/0.8115, allocations: 97.19 kB / 0.6225 GB, free: 492 kB / 394.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.714e-05/0.8115, allocations: 32 kB / 0.6225 GB, free: 460 kB / 394.9 MB Notification: Performance of sorting global known variables: time 0.001119/0.8127, allocations: 0.7725 MB / 0.6233 GB, free: 15.68 MB / 410.9 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8127, allocations: 0 / 0.6233 GB, free: 15.68 MB / 410.9 MB Notification: Performance of remove unused functions: time 0.001761/0.8144, allocations: 480 kB / 0.6237 GB, free: 15.21 MB / 410.9 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 (89): * Single equations (assignments): 87 * 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.0005391/0.815, allocations: 374.1 kB / 0.6241 GB, free: 14.84 MB / 410.9 MB Notification: Performance of simCode: created initialization part: time 0.002258/0.8172, allocations: 1.61 MB / 0.6256 GB, free: 13.2 MB / 410.9 MB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.8173, allocations: 4.688 kB / 0.6256 GB, free: 13.19 MB / 410.9 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.8189, allocations: 1.055 MB / 0.6267 GB, free: 12.11 MB / 410.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.8207, allocations: 354.4 kB / 0.627 GB, free: 11.77 MB / 410.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007388/0.8282, allocations: 3.663 MB / 0.6306 GB, free: 8.02 MB / 410.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001676/0.8299, allocations: 2.012 MB / 0.6326 GB, free: 5.969 MB / 410.9 MB Notification: Performance of simCode: alias equations: time 0.001427/0.8313, allocations: 365.7 kB / 0.6329 GB, free: 5.605 MB / 410.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/0.8317, allocations: 119.4 kB / 0.633 GB, free: 5.488 MB / 410.9 MB Notification: Performance of SimCode: time 8.01e-07/0.8317, allocations: 0 / 0.633 GB, free: 5.488 MB / 410.9 MB Notification: Performance of Templates: time 0.2474/1.079, allocations: 22.14 MB / 0.6546 GB, free: 96.55 MB / 426.9 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)