Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") [: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/Complex 3.2.2+maint.om/package.mo): time 0.00161/0.00161, allocations: 189.1 kB / 8.137 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.099/1.099, allocations: 194.2 MB / 202.8 MB, free: 8.66 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001761/0.001761, allocations: 118.5 kB / 247.7 MB, free: 6.391 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.142e-05/1.152e-05, allocations: 0 / 297.6 MB, free: 8.039 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.08995, allocations: 44.49 MB / 342.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2158/0.3058, allocations: 100.1 MB / 442.2 MB, free: 11.35 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.3061, allocations: 85.02 kB / 442.3 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1294/0.4355, allocations: 45.1 MB / 487.4 MB, free: 5.504 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000145/0.4357, allocations: 63.94 kB / 487.4 MB, free: 5.441 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.004458/0.4401, allocations: 2.22 MB / 489.7 MB, free: 3.164 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.4402, allocations: 11.97 kB / 489.7 MB, free: 3.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000831/0.441, allocations: 296.8 kB / 490 MB, free: 2.859 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003173/0.4442, allocations: 1.576 MB / 491.5 MB, free: 1.223 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.137e-05/0.4443, allocations: 68 kB / 491.6 MB, free: 1.156 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003001/0.4446, allocations: 131.9 kB / 491.7 MB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0036/0.4482, allocations: 2.031 MB / 493.8 MB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004074/0.4523, allocations: 2.421 MB / 496.2 MB, free: 12.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-05/0.4524, allocations: 3.906 kB / 496.2 MB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001986/0.4526, allocations: 4 kB / 496.2 MB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.636e-05/0.4527, allocations: 100.1 kB / 496.3 MB, free: 12.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01331/0.466, allocations: 8.215 MB / 0.4927 GB, free: 3.871 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.4676, allocations: 0.8408 MB / 0.4935 GB, free: 3.027 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001255/0.4689, allocations: 0.8438 MB / 0.4943 GB, free: 2.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003298/0.4692, allocations: 211.2 kB / 0.4945 GB, free: 1.934 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.4692, allocations: 47.47 kB / 0.4946 GB, free: 1.879 MB / 378.7 MB Notification: Performance of pre-optimization done (n=105): time 3.296e-06/0.4693, allocations: 4 kB / 0.4946 GB, free: 1.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=126): time 0.009533/0.4788, allocations: 4.769 MB / 0.4992 GB, free: 13.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.4789, allocations: 68.39 kB / 0.4993 GB, free: 12.97 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.4803, allocations: 1.024 MB / 0.5003 GB, free: 11.94 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.285e-05/0.4804, allocations: 29.7 kB / 0.5003 GB, free: 11.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004344/0.4809, allocations: 0.8215 MB / 0.5011 GB, free: 11.07 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003166/0.4812, allocations: 425.6 kB / 0.5015 GB, free: 10.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.4813, allocations: 0 / 0.5015 GB, free: 10.64 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.4814, allocations: 361.9 kB / 0.5019 GB, free: 10.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000996/0.4824, allocations: 0.6951 MB / 0.5026 GB, free: 9.59 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.4837, allocations: 1.053 MB / 0.5036 GB, free: 8.379 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001277/0.485, allocations: 0.8806 MB / 0.5044 GB, free: 7.496 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.485, allocations: 4 kB / 0.5044 GB, free: 7.492 MB / 394.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.004064/0.489, allocations: 2.374 MB / 0.5068 GB, free: 5.102 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.4891, allocations: 5.094 kB / 0.5068 GB, free: 5.098 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/0.4891, allocations: 12 kB / 0.5068 GB, free: 5.086 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.4907, allocations: 0.5843 MB / 0.5074 GB, free: 4.492 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.4921, allocations: 323.5 kB / 0.5077 GB, free: 4.176 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1038/0.5959, allocations: 5.79 MB / 0.5133 GB, free: 133.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001368/0.5973, allocations: 64.36 kB / 0.5134 GB, free: 133.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002269/0.5976, allocations: 59.47 kB / 0.5134 GB, free: 133.9 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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: 2 * 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: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003572/0.5979, allocations: 141.8 kB / 0.5136 GB, free: 133.8 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000327/0.5983, allocations: 148.7 kB / 0.5137 GB, free: 133.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003687/0.602, allocations: 2.203 MB / 0.5159 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.602, allocations: 16.53 kB / 0.5159 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.602, allocations: 7.906 kB / 0.5159 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.201e-05/0.602, allocations: 7.172 kB / 0.5159 GB, free: 133.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007021/0.6091, allocations: 4.319 MB / 0.5201 GB, free: 133.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.6091, allocations: 6.281 kB / 0.5201 GB, free: 133.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000995/0.6101, allocations: 209.7 kB / 0.5203 GB, free: 133.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001811/0.6119, allocations: 0.6205 MB / 0.5209 GB, free: 133.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001067/0.612, allocations: 16.03 kB / 0.5209 GB, free: 133.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007244/0.6193, allocations: 7.423 MB / 0.5282 GB, free: 129.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.451e-06/0.6193, allocations: 6.531 kB / 0.5282 GB, free: 129.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004344/0.6237, allocations: 3.379 MB / 0.5315 GB, free: 129.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007057/0.6244, allocations: 382 kB / 0.5319 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003102/0.6247, allocations: 13.09 kB / 0.5319 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009906/0.6257, allocations: 56.38 kB / 0.5319 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.6259, allocations: 72.92 kB / 0.532 GB, free: 129.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.414e-05/0.626, allocations: 41.48 kB / 0.532 GB, free: 129.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001039/0.627, allocations: 0.7691 MB / 0.5328 GB, free: 129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001368/0.6284, allocations: 452.2 kB / 0.5332 GB, free: 129 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004152/0.6288, allocations: 284.5 kB / 0.5335 GB, free: 128.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00282/0.6317, allocations: 2.147 MB / 0.5356 GB, free: 128.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.6317, allocations: 0 / 0.5356 GB, free: 128.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001969/0.6336, allocations: 1.346 MB / 0.5369 GB, free: 128.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.635, allocations: 286.1 kB / 0.5372 GB, free: 128.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005935/0.641, allocations: 3.67 MB / 0.5408 GB, free: 127.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001559/0.6426, allocations: 1.941 MB / 0.5426 GB, free: 126.7 MB / 394.7 MB Notification: Performance of SimCode: time 6.42e-07/0.6426, allocations: 0 / 0.5426 GB, free: 126.7 MB / 394.7 MB Notification: Performance of Templates: time 0.03672/0.6793, allocations: 22.49 MB / 0.5646 GB, free: 125.4 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)