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.019/0.019, 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.001511/0.001511, allocations: 175 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.481/1.481, allocations: 221.4 MB / 238.9 MB, free: 11.42 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.001016/0.001016, allocations: 99.45 kB / 290.4 MB, free: 10.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.257e-05/3.259e-05, allocations: 4 kB / 349.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3516, allocations: 50.99 MB / 400.3 MB, free: 31.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4274/0.7791, allocations: 112.2 MB / 0.5005 GB, free: 98.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.7794, allocations: 72.27 kB / 0.5005 GB, free: 98.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1507/0.9301, allocations: 70.45 MB / 0.5693 GB, free: 39.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.9301, allocations: 0 / 0.5693 GB, free: 39.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001779/0.9303, allocations: 67.88 kB / 0.5694 GB, free: 39.73 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.006171/0.9365, allocations: 2.602 MB / 0.5719 GB, free: 37.06 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.9366, allocations: 8.031 kB / 0.5719 GB, free: 37.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002651/0.9392, allocations: 0.5316 MB / 0.5725 GB, free: 36.52 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00665/0.9459, allocations: 2.895 MB / 0.5753 GB, free: 33.56 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.946, allocations: 197.1 kB / 0.5755 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004213/0.9465, allocations: 255.9 kB / 0.5757 GB, free: 33.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004721/0.9512, allocations: 3.175 MB / 0.5788 GB, free: 29.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.482e-05/0.9513, allocations: 7.938 kB / 0.5788 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002114/0.9515, allocations: 112 kB / 0.5789 GB, free: 29.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.658e-05/0.9516, allocations: 117 kB / 0.579 GB, free: 29.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003543/0.9551, allocations: 2.472 MB / 0.5815 GB, free: 27.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01369/0.9688, allocations: 11.15 MB / 0.5924 GB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00292/0.9718, allocations: 3.645 MB / 0.5959 GB, free: 11.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001073/0.9729, allocations: 0.8115 MB / 0.5967 GB, free: 10.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003487/0.9764, allocations: 2.373 MB / 0.599 GB, free: 8.113 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.9765, allocations: 43.34 kB / 0.5991 GB, free: 8.062 MB / 378.7 MB Notification: Performance of pre-optimization done (n=80): time 2.335e-06/0.9765, allocations: 0 / 0.5991 GB, free: 8.062 MB / 378.7 MB Notification: Performance of matching and sorting (n=116): time 0.009192/0.9857, allocations: 4.757 MB / 0.6037 GB, free: 3.242 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007019/0.9927, allocations: 5.006 MB / 0.6086 GB, free: 14.07 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0028/0.9956, allocations: 1.294 MB / 0.6099 GB, free: 12.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002183/0.9958, allocations: 45.7 kB / 0.6099 GB, free: 12.72 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00102/0.9968, allocations: 1.243 MB / 0.6111 GB, free: 11.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003884/0.9972, allocations: 402.2 kB / 0.6115 GB, free: 11.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.423e-05/0.9973, allocations: 28 kB / 0.6115 GB, free: 11.04 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.9975, allocations: 369.9 kB / 0.6119 GB, free: 10.67 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.9985, allocations: 0.578 MB / 0.6124 GB, free: 10.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.9999, allocations: 1.095 MB / 0.6135 GB, free: 8.762 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/1.001, allocations: 0.7934 MB / 0.6143 GB, free: 7.965 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/1.001, allocations: 4 kB / 0.6143 GB, free: 7.961 MB / 394.7 MB Notification: Performance of matching and sorting (n=193) (initialization): time 0.003557/1.005, allocations: 1.943 MB / 0.6162 GB, free: 6.004 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.336e-05/1.005, allocations: 12 kB / 0.6162 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.967e-05/1.005, allocations: 19.98 kB / 0.6162 GB, free: 5.973 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000289/1.005, allocations: 97.62 kB / 0.6163 GB, free: 5.871 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/1.007, allocations: 395.6 kB / 0.6167 GB, free: 5.484 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.65e-05/1.007, allocations: 35.86 kB / 0.6167 GB, free: 5.449 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/1.008, allocations: 87.88 kB / 0.6168 GB, free: 5.363 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001169/1.008, allocations: 68 kB / 0.6169 GB, free: 5.297 MB / 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 () * 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.0002775/1.008, allocations: 200.4 kB / 0.6171 GB, free: 5.094 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/1.009, allocations: 170 kB / 0.6172 GB, free: 4.926 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003542/1.012, allocations: 1.797 MB / 0.619 GB, free: 3.109 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/1.012, allocations: 12 kB / 0.619 GB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/1.012, allocations: 0 / 0.619 GB, free: 3.098 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/1.012, allocations: 3.984 kB / 0.619 GB, free: 3.094 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009886/1.022, allocations: 5.568 MB / 0.6244 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/1.022, allocations: 0 / 0.6244 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007618/1.023, allocations: 179.8 kB / 0.6246 GB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001196/1.024, allocations: 401.7 kB / 0.625 GB, free: 12.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.868e-05/1.024, allocations: 27.98 kB / 0.625 GB, free: 12.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006848/1.031, allocations: 4.725 MB / 0.6296 GB, free: 7.938 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007112/1.038, allocations: 4.866 MB / 0.6344 GB, free: 2.926 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004601/1.043, allocations: 2.859 MB / 0.6372 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009822/1.044, allocations: 374.9 kB / 0.6375 GB, free: 15.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000181/1.044, allocations: 23.94 kB / 0.6376 GB, free: 15.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007504/1.045, allocations: 67.92 kB / 0.6376 GB, free: 15.45 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002436/1.045, allocations: 88.83 kB / 0.6377 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.916e-05/1.045, allocations: 36.06 kB / 0.6377 GB, free: 15.33 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001664/1.047, allocations: 0.9794 MB / 0.6387 GB, free: 14.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/1.047, allocations: 0 / 0.6387 GB, free: 14.36 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002002/1.049, allocations: 0.5546 MB / 0.6392 GB, free: 13.8 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.0007004/1.05, allocations: 469.8 kB / 0.6397 GB, free: 13.34 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002657/1.052, allocations: 1.656 MB / 0.6413 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/1.052, allocations: 0 / 0.6413 GB, free: 11.64 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001839/1.054, allocations: 1.081 MB / 0.6424 GB, free: 10.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/1.056, allocations: 435.6 kB / 0.6428 GB, free: 10.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008473/1.065, allocations: 3.736 MB / 0.6464 GB, free: 6.285 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001887/1.067, allocations: 2.003 MB / 0.6484 GB, free: 4.25 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001641/1.068, allocations: 382.9 kB / 0.6487 GB, free: 3.871 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003524/1.069, allocations: 123.4 kB / 0.6489 GB, free: 3.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.823e-06/1.069, allocations: 3.938 kB / 0.6489 GB, free: 3.746 MB / 426.7 MB Notification: Performance of Templates: time 0.3078/1.377, allocations: 28.27 MB / 0.6765 GB, free: 102.8 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)