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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01855/0.01855, allocations: 2.548 MB / 9.821 MB, free: 1.668 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001017, allocations: 192.3 kB / 10.98 MB, free: 0.6172 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 221.4 MB / 233.4 MB, free: 5.402 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009871/0.0009872, allocations: 93.94 kB / 284.8 MB, free: 4.332 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 6.993e-06/7.193e-06, allocations: 0 / 341.9 MB, free: 11.26 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2762/0.2763, allocations: 51 MB / 392.9 MB, free: 26.11 MB / 290.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3599/0.6362, allocations: 111.4 MB / 0.4925 GB, free: 96.55 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.6364, allocations: 73.72 kB / 0.4925 GB, free: 96.55 MB / 370.8 MB Notification: Performance of FrontEnd: time 0.1587/0.7951, allocations: 69.3 MB / 0.5602 GB, free: 32.82 MB / 370.8 MB Notification: Performance of Transformations before backend: time 0.0002967/0.7955, allocations: 67.92 kB / 0.5603 GB, free: 32.76 MB / 370.8 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.008005/0.8035, allocations: 2.618 MB / 0.5628 GB, free: 30.08 MB / 370.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.8036, allocations: 8.031 kB / 0.5628 GB, free: 30.07 MB / 370.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004151/0.8077, allocations: 0.5235 MB / 0.5634 GB, free: 29.54 MB / 370.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009319/0.8171, allocations: 2.907 MB / 0.5662 GB, free: 26.57 MB / 370.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001748/0.8173, allocations: 88 kB / 0.5663 GB, free: 26.49 MB / 370.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.8183, allocations: 147.9 kB / 0.5664 GB, free: 26.34 MB / 370.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005728/0.8241, allocations: 2.334 MB / 0.5687 GB, free: 24 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006856/0.831, allocations: 2.843 MB / 0.5715 GB, free: 21.02 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.204e-05/0.8311, allocations: 0 / 0.5715 GB, free: 21.02 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003919/0.8315, allocations: 4 kB / 0.5715 GB, free: 21.02 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001069/0.8316, allocations: 121 kB / 0.5716 GB, free: 20.89 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01542/0.847, allocations: 10.67 MB / 0.582 GB, free: 9.844 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008631/0.848, allocations: 0.6892 MB / 0.5827 GB, free: 9.145 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001165/0.8491, allocations: 0.8225 MB / 0.5835 GB, free: 8.32 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003739/0.8529, allocations: 2.436 MB / 0.5859 GB, free: 5.809 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.8529, allocations: 43.34 kB / 0.5859 GB, free: 5.758 MB / 370.8 MB Notification: Performance of pre-optimization done (n=94): time 3.136e-06/0.8529, allocations: 0 / 0.5859 GB, free: 5.758 MB / 370.8 MB Notification: Performance of matching and sorting (n=132): time 0.01047/0.8634, allocations: 4.93 MB / 0.5907 GB, free: 0.7695 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.8635, allocations: 76.66 kB / 0.5908 GB, free: 0.6797 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001558/0.8651, allocations: 1.044 MB / 0.5918 GB, free: 15.62 MB / 386.8 MB Notification: Performance of collectPreVariables (initialization): time 9.364e-05/0.8652, allocations: 29.7 kB / 0.5918 GB, free: 15.58 MB / 386.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006665/0.8658, allocations: 1.023 MB / 0.5928 GB, free: 14.54 MB / 386.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003765/0.8662, allocations: 437.5 kB / 0.5933 GB, free: 14.11 MB / 386.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.704e-05/0.8663, allocations: 0 / 0.5933 GB, free: 14.11 MB / 386.8 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.8665, allocations: 369.9 kB / 0.5936 GB, free: 13.74 MB / 386.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009937/0.8675, allocations: 0.6092 MB / 0.5942 GB, free: 13.13 MB / 386.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.8688, allocations: 1.13 MB / 0.5953 GB, free: 11.78 MB / 386.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.8702, allocations: 0.8495 MB / 0.5961 GB, free: 10.93 MB / 386.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.8702, allocations: 8 kB / 0.5961 GB, free: 10.92 MB / 386.8 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.003324/0.8736, allocations: 1.955 MB / 0.5981 GB, free: 8.957 MB / 386.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.8736, allocations: 7.938 kB / 0.5981 GB, free: 8.949 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.8736, allocations: 16 kB / 0.5981 GB, free: 8.934 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000278/0.8739, allocations: 97.58 kB / 0.5982 GB, free: 8.832 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001669/0.8756, allocations: 419.6 kB / 0.5986 GB, free: 8.422 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.025e-05/0.8756, allocations: 39.86 kB / 0.5986 GB, free: 8.383 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001116/0.8768, allocations: 35.97 kB / 0.5986 GB, free: 8.348 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.8769, allocations: 75.98 kB / 0.5987 GB, free: 8.273 MB / 386.8 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 (207): * Single equations (assignments): 205 * 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.000239/0.8771, allocations: 161.9 kB / 0.5989 GB, free: 8.109 MB / 386.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002205/0.8774, allocations: 154.1 kB / 0.599 GB, free: 7.957 MB / 386.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00354/0.8809, allocations: 1.859 MB / 0.6008 GB, free: 6.074 MB / 386.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.8809, allocations: 12 kB / 0.6008 GB, free: 6.062 MB / 386.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.881, allocations: 0 / 0.6008 GB, free: 6.062 MB / 386.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.881, allocations: 7.969 kB / 0.6009 GB, free: 6.055 MB / 386.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009639/0.8906, allocations: 5.62 MB / 0.6063 GB, free: 300 kB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.8907, allocations: 4.344 kB / 0.6063 GB, free: 296 kB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009588/0.8916, allocations: 207.7 kB / 0.6065 GB, free: 88 kB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.8929, allocations: 401.4 kB / 0.6069 GB, free: 15.69 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-05/0.893, allocations: 8 kB / 0.6069 GB, free: 15.68 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006891/0.8999, allocations: 4.462 MB / 0.6113 GB, free: 11.09 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007708/0.9077, allocations: 4.588 MB / 0.6158 GB, free: 6.371 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005544/0.9132, allocations: 3.017 MB / 0.6187 GB, free: 3.207 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/0.9145, allocations: 379 kB / 0.6191 GB, free: 2.816 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002453/0.9147, allocations: 7.984 kB / 0.6191 GB, free: 2.809 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009705/0.9157, allocations: 32.03 kB / 0.6191 GB, free: 2.777 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.9159, allocations: 76.73 kB / 0.6192 GB, free: 2.703 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-05/0.916, allocations: 36 kB / 0.6192 GB, free: 2.668 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.001581/0.9176, allocations: 0.7764 MB / 0.62 GB, free: 1.891 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.002077/0.9197, allocations: 487.9 kB / 0.6205 GB, free: 1.414 MB / 402.8 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 (101): * Single equations (assignments): 99 * 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.0007309/0.9204, allocations: 381.4 kB / 0.6208 GB, free: 1.043 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.9233, allocations: 1.738 MB / 0.6225 GB, free: 15.27 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.9233, allocations: 4.062 kB / 0.6225 GB, free: 15.26 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001753/0.9251, allocations: 1.046 MB / 0.6235 GB, free: 14.19 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001916/0.927, allocations: 342.4 kB / 0.6239 GB, free: 13.85 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008092/0.9351, allocations: 3.695 MB / 0.6275 GB, free: 10.06 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002432/0.9376, allocations: 2.127 MB / 0.6296 GB, free: 7.898 MB / 418.8 MB Notification: Performance of SimCode: time 7.32e-07/0.9376, allocations: 0 / 0.6296 GB, free: 7.898 MB / 418.8 MB Notification: Performance of Templates: time 0.2439/1.182, allocations: 25.27 MB / 0.6542 GB, free: 126.6 MB / 434.8 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)