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.01328/0.01328, allocations: 2.536 MB / 9.824 MB, free: 448 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.001153/0.001153, allocations: 180.8 kB / 10.97 MB, free: 1.918 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.35/1.35, allocations: 221.4 MB / 233.4 MB, free: 4.145 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.001039/0.001039, allocations: 88.66 kB / 284.8 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.058e-05/1.088e-05, allocations: 4 kB / 341.9 MB, free: 6.527 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.105, allocations: 50.99 MB / 392.8 MB, free: 3.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3251/0.4302, allocations: 111.4 MB / 0.4924 GB, free: 9.695 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.4304, allocations: 75.97 kB / 0.4925 GB, free: 9.621 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.4016/0.8321, allocations: 69.3 MB / 0.5602 GB, free: 97.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002136/0.8323, allocations: 63.94 kB / 0.5602 GB, free: 97.8 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.006823/0.8392, allocations: 2.622 MB / 0.5628 GB, free: 96.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.8392, allocations: 14.48 kB / 0.5628 GB, free: 96.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003117/0.8424, allocations: 0.5235 MB / 0.5633 GB, free: 96.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007422/0.8498, allocations: 2.912 MB / 0.5662 GB, free: 96.09 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.8499, allocations: 83.75 kB / 0.5663 GB, free: 96.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000715/0.8507, allocations: 150.5 kB / 0.5664 GB, free: 96.09 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004825/0.8555, allocations: 2.331 MB / 0.5687 GB, free: 96.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0053/0.8608, allocations: 2.844 MB / 0.5714 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-05/0.8609, allocations: 3.75 kB / 0.5715 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002561/0.8612, allocations: 3.906 kB / 0.5715 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.287e-05/0.8613, allocations: 123.7 kB / 0.5716 GB, free: 95.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01522/0.8765, allocations: 10.67 MB / 0.582 GB, free: 92.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.8775, allocations: 0.6803 MB / 0.5827 GB, free: 92.5 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.8788, allocations: 0.8242 MB / 0.5835 GB, free: 92.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003957/0.8827, allocations: 2.443 MB / 0.5858 GB, free: 90.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.8828, allocations: 43.25 kB / 0.5859 GB, free: 90.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=94): time 3.226e-06/0.8828, allocations: 0 / 0.5859 GB, free: 90.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01164/0.8945, allocations: 4.946 MB / 0.5907 GB, free: 88.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.218e-05/0.8945, allocations: 66.06 kB / 0.5908 GB, free: 88.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001981/0.8965, allocations: 1.045 MB / 0.5918 GB, free: 88.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.8966, allocations: 29.58 kB / 0.5918 GB, free: 88.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005344/0.8972, allocations: 1.031 MB / 0.5928 GB, free: 87.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.8975, allocations: 429.7 kB / 0.5932 GB, free: 87.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.8976, allocations: 3.812 kB / 0.5933 GB, free: 87.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.8977, allocations: 372 kB / 0.5936 GB, free: 86.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008693/0.8986, allocations: 0.6132 MB / 0.5942 GB, free: 86.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.8997, allocations: 1.122 MB / 0.5953 GB, free: 85.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.9012, allocations: 0.8591 MB / 0.5961 GB, free: 85.18 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.9012, allocations: 7.844 kB / 0.5961 GB, free: 85.17 MB / 426.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.00317/0.9044, allocations: 1.947 MB / 0.598 GB, free: 84.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.9044, allocations: 7.844 kB / 0.5981 GB, free: 84.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.654e-05/0.9044, allocations: 15.66 kB / 0.5981 GB, free: 84.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.9048, allocations: 95.97 kB / 0.5982 GB, free: 84.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.9064, allocations: 417.4 kB / 0.5986 GB, free: 84.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.267e-05/0.9065, allocations: 37.73 kB / 0.5986 GB, free: 84.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.9078, allocations: 45.91 kB / 0.5986 GB, free: 84.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.908, allocations: 70.91 kB / 0.5987 GB, free: 84.39 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 (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.0002503/0.9082, allocations: 150.5 kB / 0.5989 GB, free: 84.28 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003281/0.9086, allocations: 163.6 kB / 0.599 GB, free: 84.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/0.9126, allocations: 1.855 MB / 0.6008 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.789e-05/0.9126, allocations: 16.47 kB / 0.6008 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/0.9127, allocations: 1 kB / 0.6008 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.9127, allocations: 9.672 kB / 0.6008 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01275/0.9254, allocations: 5.618 MB / 0.6063 GB, free: 80.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.9255, allocations: 2.625 kB / 0.6063 GB, free: 80.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.9265, allocations: 205.6 kB / 0.6065 GB, free: 80.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001465/0.928, allocations: 402.7 kB / 0.6069 GB, free: 80.71 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.856e-05/0.9281, allocations: 10.53 kB / 0.6069 GB, free: 80.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007015/0.9352, allocations: 4.455 MB / 0.6113 GB, free: 78.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.007202/0.9424, allocations: 4.598 MB / 0.6158 GB, free: 75.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005346/0.9478, allocations: 3.013 MB / 0.6187 GB, free: 73.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/0.9488, allocations: 379.5 kB / 0.6191 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004777/0.9493, allocations: 4.344 kB / 0.6191 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.9505, allocations: 37.66 kB / 0.6191 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/0.9506, allocations: 73.12 kB / 0.6192 GB, free: 73.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.9507, allocations: 38.44 kB / 0.6192 GB, free: 73.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001754/0.9525, allocations: 0.777 MB / 0.62 GB, free: 72.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002645/0.9552, allocations: 493.8 kB / 0.6204 GB, free: 72.96 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 (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.0006974/0.9559, allocations: 372.8 kB / 0.6208 GB, free: 72.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003034/0.9589, allocations: 1.743 MB / 0.6225 GB, free: 72 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.9589, allocations: 0.8125 kB / 0.6225 GB, free: 72 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001914/0.9609, allocations: 1.044 MB / 0.6235 GB, free: 71.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002352/0.9632, allocations: 345.4 kB / 0.6239 GB, free: 71.36 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008571/0.9718, allocations: 3.711 MB / 0.6275 GB, free: 68.03 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002368/0.9742, allocations: 2.118 MB / 0.6295 GB, free: 66.31 MB / 426.7 MB Notification: Performance of SimCode: time 9.32e-07/0.9742, allocations: 0 / 0.6295 GB, free: 66.31 MB / 426.7 MB Notification: Performance of Templates: time 0.04501/1.019, allocations: 25.26 MB / 0.6542 GB, free: 46.88 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)