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.01575/0.01575, allocations: 2.55 MB / 10.02 MB, free: 424 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.0009775/0.0009777, allocations: 188.8 kB / 11.18 MB, free: 1.484 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.364/1.364, allocations: 221.5 MB / 233.7 MB, free: 4.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009121/0.000912, allocations: 99.48 kB / 285.2 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.371e-05/1.373e-05, allocations: 0 / 342.4 MB, free: 6.164 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1074, allocations: 51.02 MB / 393.4 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3692/0.4766, allocations: 111.5 MB / 0.4931 GB, free: 9.336 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/0.477, allocations: 72.47 kB / 0.4931 GB, free: 9.266 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.413/0.8899, allocations: 69.46 MB / 0.561 GB, free: 97.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.89, allocations: 0 / 0.561 GB, free: 97.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001945/0.8902, allocations: 67.97 kB / 0.561 GB, free: 97.7 MB / 426.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.006517/0.8967, allocations: 2.599 MB / 0.5636 GB, free: 96.65 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.8968, allocations: 9.75 kB / 0.5636 GB, free: 96.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00286/0.8996, allocations: 0.5253 MB / 0.5641 GB, free: 96.49 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007734/0.9074, allocations: 2.899 MB / 0.5669 GB, free: 95.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.9076, allocations: 81.53 kB / 0.567 GB, free: 95.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006597/0.9082, allocations: 157.8 kB / 0.5672 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005212/0.9134, allocations: 2.297 MB / 0.5694 GB, free: 95.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005068/0.9185, allocations: 2.813 MB / 0.5722 GB, free: 95.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.253e-05/0.9186, allocations: 6.688 kB / 0.5722 GB, free: 95.58 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001914/0.9188, allocations: 2.75 kB / 0.5722 GB, free: 95.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/0.919, allocations: 128.7 kB / 0.5723 GB, free: 95.57 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01531/0.9343, allocations: 10.62 MB / 0.5827 GB, free: 92.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002594/0.9369, allocations: 3.61 MB / 0.5862 GB, free: 89.14 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000983/0.9379, allocations: 0.7853 MB / 0.5869 GB, free: 88.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003252/0.9412, allocations: 2.31 MB / 0.5892 GB, free: 87.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.9412, allocations: 50.83 kB / 0.5893 GB, free: 87.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=82): time 2.335e-06/0.9412, allocations: 3.344 kB / 0.5893 GB, free: 87.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=120): time 0.009225/0.9505, allocations: 4.914 MB / 0.5941 GB, free: 85.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.321e-05/0.9505, allocations: 63.94 kB / 0.5941 GB, free: 85.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001262/0.9518, allocations: 1.044 MB / 0.5951 GB, free: 84.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.349e-05/0.9518, allocations: 29.02 kB / 0.5952 GB, free: 84.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005263/0.9524, allocations: 1.252 MB / 0.5964 GB, free: 83.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.9526, allocations: 404 kB / 0.5968 GB, free: 83.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.066e-05/0.9527, allocations: 0 / 0.5968 GB, free: 83.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.28e-05/0.9527, allocations: 363.2 kB / 0.5971 GB, free: 83.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006383/0.9534, allocations: 0.5625 MB / 0.5977 GB, free: 83.03 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008037/0.9542, allocations: 1.065 MB / 0.5987 GB, free: 82.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.9553, allocations: 0.8608 MB / 0.5995 GB, free: 81.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.894e-06/0.9553, allocations: 7.562 kB / 0.5996 GB, free: 81.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.002442/0.9578, allocations: 1.881 MB / 0.6014 GB, free: 81.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.9578, allocations: 19.12 kB / 0.6014 GB, free: 81.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.573e-05/0.9578, allocations: 13.59 kB / 0.6014 GB, free: 81.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002239/0.9581, allocations: 97.47 kB / 0.6015 GB, free: 81.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.9593, allocations: 399.3 kB / 0.6019 GB, free: 81.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.138e-05/0.9594, allocations: 33.88 kB / 0.6019 GB, free: 81.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009625/0.9603, allocations: 60.64 kB / 0.602 GB, free: 81.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.566e-05/0.9605, allocations: 72.62 kB / 0.6021 GB, free: 81.01 MB / 426.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 (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.0001885/0.9606, allocations: 150.5 kB / 0.6022 GB, free: 80.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.9608, allocations: 156 kB / 0.6023 GB, free: 80.81 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002829/0.9637, allocations: 1.802 MB / 0.6041 GB, free: 80.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-06/0.9637, allocations: 11.31 kB / 0.6041 GB, free: 80.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.954e-06/0.9637, allocations: 0 / 0.6041 GB, free: 80.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.9637, allocations: 6.75 kB / 0.6041 GB, free: 80.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007537/0.9713, allocations: 5.342 MB / 0.6093 GB, free: 77.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.9713, allocations: 3.5 kB / 0.6093 GB, free: 77.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007148/0.972, allocations: 186.4 kB / 0.6095 GB, free: 77.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001074/0.9731, allocations: 391.3 kB / 0.6099 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.397e-05/0.9732, allocations: 18.66 kB / 0.6099 GB, free: 77.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0054/0.9786, allocations: 4.662 MB / 0.6145 GB, free: 74.65 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.005515/0.9841, allocations: 4.809 MB / 0.6192 GB, free: 71.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003828/0.988, allocations: 2.882 MB / 0.622 GB, free: 70.13 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007769/0.9888, allocations: 367.1 kB / 0.6223 GB, free: 69.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.989, allocations: 9.562 kB / 0.6223 GB, free: 69.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007271/0.9898, allocations: 46.44 kB / 0.6224 GB, free: 69.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.99, allocations: 91.5 kB / 0.6225 GB, free: 69.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.474e-05/0.9901, allocations: 40.88 kB / 0.6225 GB, free: 69.84 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001099/0.9912, allocations: 0.7701 MB / 0.6233 GB, free: 69.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.5e-07/0.9912, allocations: 0 / 0.6233 GB, free: 69.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0019/0.9931, allocations: 485 kB / 0.6237 GB, free: 69.46 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 (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.0005155/0.9936, allocations: 382.3 kB / 0.6241 GB, free: 69.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002048/0.9957, allocations: 1.612 MB / 0.6257 GB, free: 68.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.9957, allocations: 2.625 kB / 0.6257 GB, free: 68.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001378/0.9971, allocations: 1.064 MB / 0.6267 GB, free: 67.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.9988, allocations: 356 kB / 0.627 GB, free: 67.85 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006368/1.005, allocations: 3.651 MB / 0.6306 GB, free: 65.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001359/1.007, allocations: 2.005 MB / 0.6326 GB, free: 63.46 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001531/1.008, allocations: 371.2 kB / 0.6329 GB, free: 63.21 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/1.008, allocations: 114.8 kB / 0.633 GB, free: 63.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.355e-06/1.008, allocations: 0 / 0.633 GB, free: 63.1 MB / 426.7 MB Notification: Performance of Templates: time 0.03709/1.046, allocations: 22.15 MB / 0.6547 GB, free: 46.08 MB / 426.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)