Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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.001016/0.001016, allocations: 193.8 kB / 8.138 MB, free: 2.191 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.08/1.08, allocations: 194.2 MB / 202.8 MB, free: 8.645 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.001674/0.001674, allocations: 117.5 kB / 247.7 MB, free: 6.379 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.18e-06/5.22e-06, allocations: 0 / 297.6 MB, free: 8.016 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07006/0.07008, allocations: 44.48 MB / 342.1 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.2842, allocations: 103.1 MB / 445.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.2845, allocations: 84.5 kB / 445.2 MB, free: 8.426 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1426/0.4272, allocations: 48.88 MB / 494.1 MB, free: 14.74 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001915/0.4274, allocations: 63.94 kB / 494.1 MB, free: 14.68 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.00534/0.4328, allocations: 2.334 MB / 496.5 MB, free: 12.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.4328, allocations: 8.031 kB / 496.5 MB, free: 12.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001183/0.434, allocations: 320.5 kB / 496.8 MB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003675/0.4377, allocations: 1.675 MB / 498.5 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.549e-05/0.4378, allocations: 68 kB / 498.5 MB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004367/0.4383, allocations: 143.8 kB / 498.7 MB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00416/0.4424, allocations: 2.106 MB / 0.489 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004869/0.4473, allocations: 2.523 MB / 0.4915 GB, free: 5.242 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.924e-05/0.4474, allocations: 7.906 kB / 0.4915 GB, free: 5.234 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002147/0.4477, allocations: 4 kB / 0.4915 GB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001008/0.4478, allocations: 104.3 kB / 0.4916 GB, free: 5.125 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01418/0.462, allocations: 8.698 MB / 0.5001 GB, free: 12.17 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.4634, allocations: 0.8565 MB / 0.501 GB, free: 11.3 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.4648, allocations: 0.8618 MB / 0.5018 GB, free: 10.44 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003379/0.4651, allocations: 211.2 kB / 0.502 GB, free: 10.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.4652, allocations: 47.47 kB / 0.502 GB, free: 10.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=109): time 3.056e-06/0.4652, allocations: 3.938 kB / 0.502 GB, free: 10.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=132): time 0.009763/0.4749, allocations: 4.95 MB / 0.5069 GB, free: 5.133 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.475, allocations: 72.72 kB / 0.5069 GB, free: 5.051 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.4767, allocations: 1.108 MB / 0.508 GB, free: 3.934 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.303e-05/0.4768, allocations: 25.7 kB / 0.5081 GB, free: 3.902 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004691/0.4772, allocations: 0.8725 MB / 0.5089 GB, free: 3.016 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003351/0.4776, allocations: 445.3 kB / 0.5093 GB, free: 2.574 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.267e-05/0.4777, allocations: 0 / 0.5093 GB, free: 2.574 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4778, allocations: 365.9 kB / 0.5097 GB, free: 2.211 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001065/0.4789, allocations: 0.7146 MB / 0.5104 GB, free: 1.492 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/0.4802, allocations: 1.122 MB / 0.5115 GB, free: 196 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1307/0.6109, allocations: 0.9119 MB / 0.5124 GB, free: 67.49 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/0.6109, allocations: 3.594 kB / 0.5124 GB, free: 67.49 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004016/0.615, allocations: 2.476 MB / 0.5148 GB, free: 67.41 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.615, allocations: 8.938 kB / 0.5148 GB, free: 67.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.566e-05/0.615, allocations: 11.56 kB / 0.5148 GB, free: 67.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/0.6165, allocations: 0.5813 MB / 0.5154 GB, free: 67.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.6179, allocations: 356.2 kB / 0.5157 GB, free: 67.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.6243, allocations: 6.078 MB / 0.5216 GB, free: 64.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/0.6257, allocations: 61.41 kB / 0.5217 GB, free: 64.95 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.6258, allocations: 68.53 kB / 0.5218 GB, free: 64.95 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (170): * Single equations (assignments): 167 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002576/0.6261, allocations: 158.4 kB / 0.5219 GB, free: 64.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002395/0.6263, allocations: 156.7 kB / 0.5221 GB, free: 64.84 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003786/0.6301, allocations: 2.252 MB / 0.5243 GB, free: 64.73 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.6301, allocations: 13.41 kB / 0.5243 GB, free: 64.73 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.6301, allocations: 7.25 kB / 0.5243 GB, free: 64.73 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.6302, allocations: 9.844 kB / 0.5243 GB, free: 64.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006876/0.637, allocations: 4.496 MB / 0.5287 GB, free: 64.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.6371, allocations: 3.438 kB / 0.5287 GB, free: 64.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001019/0.6381, allocations: 219.5 kB / 0.5289 GB, free: 64.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001663/0.6398, allocations: 0.6357 MB / 0.5295 GB, free: 64.26 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-05/0.6399, allocations: 18.52 kB / 0.5295 GB, free: 64.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007625/0.6475, allocations: 7.703 MB / 0.5371 GB, free: 60.53 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.6476, allocations: 4.969 kB / 0.5371 GB, free: 60.53 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004564/0.6521, allocations: 3.516 MB / 0.5405 GB, free: 59.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007949/0.6529, allocations: 401.2 kB / 0.5409 GB, free: 59.73 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000282/0.6532, allocations: 11.33 kB / 0.5409 GB, free: 59.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.6543, allocations: 62.17 kB / 0.541 GB, free: 59.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.6544, allocations: 77.91 kB / 0.541 GB, free: 59.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-05/0.6545, allocations: 38.17 kB / 0.5411 GB, free: 59.73 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001068/0.6556, allocations: 0.8321 MB / 0.5419 GB, free: 59.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001568/0.6572, allocations: 472.5 kB / 0.5423 GB, free: 59.61 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 100 * 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%) 23,(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.0004878/0.6577, allocations: 330.4 kB / 0.5426 GB, free: 59.52 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003075/0.6608, allocations: 2.208 MB / 0.5448 GB, free: 59.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.6608, allocations: 2.656 kB / 0.5448 GB, free: 59.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002096/0.6629, allocations: 1.374 MB / 0.5461 GB, free: 58.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/0.6647, allocations: 341.3 kB / 0.5465 GB, free: 58.88 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006735/0.6714, allocations: 3.854 MB / 0.5502 GB, free: 57.95 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/0.6732, allocations: 1.999 MB / 0.5522 GB, free: 57.2 MB / 394.7 MB Notification: Performance of SimCode: time 6.11e-07/0.6732, allocations: 0 / 0.5522 GB, free: 57.2 MB / 394.7 MB Notification: Performance of Templates: time 0.04214/0.7153, allocations: 24.41 MB / 0.576 GB, free: 55.49 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)