Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.1+maint.om/package.mo): time 0.003152/0.003152, allocations: 179.1 kB / 7.452 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.302/1.302, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001721/0.001722, allocations: 124.9 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.617e-06/8.696e-06, allocations: 4 kB / 261.8 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08253/0.08257, allocations: 38.76 MB / 300.5 MB, free: 3.895 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2859/0.3685, allocations: 95.03 MB / 395.5 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.3688, allocations: 82.83 kB / 395.6 MB, free: 5.758 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.1261/0.4949, allocations: 44.7 MB / 440.3 MB, free: 14.9 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002717/0.4953, allocations: 59.94 kB / 440.4 MB, free: 14.84 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.006813/0.5021, allocations: 2.223 MB / 442.6 MB, free: 12.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.5021, allocations: 8.031 kB / 442.6 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001919/0.5041, allocations: 296.7 kB / 442.9 MB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005553/0.5097, allocations: 1.506 MB / 444.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.5099, allocations: 68 kB / 444.5 MB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001086/0.511, allocations: 131.9 kB / 444.6 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005651/0.5167, allocations: 2.035 MB / 446.6 MB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004428/0.5211, allocations: 2.432 MB / 449.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.812e-05/0.5212, allocations: 4 kB / 449.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001668/0.5214, allocations: 0 / 449.1 MB, free: 5.883 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.935e-05/0.5215, allocations: 104.2 kB / 449.2 MB, free: 5.777 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01381/0.5353, allocations: 8.159 MB / 457.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.5369, allocations: 0.8329 MB / 458.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/0.5383, allocations: 0.8404 MB / 459 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003794/0.5387, allocations: 134 kB / 459.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/0.5387, allocations: 43.56 kB / 459.2 MB, free: 11.51 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 5.17e-06/0.5387, allocations: 3.984 kB / 459.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.01014/0.5489, allocations: 4.744 MB / 463.9 MB, free: 6.707 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.205e-05/0.549, allocations: 72.39 kB / 464 MB, free: 6.621 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/0.5506, allocations: 0.9616 MB / 465 MB, free: 5.652 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.717e-05/0.5507, allocations: 29.64 kB / 465 MB, free: 5.617 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005051/0.5512, allocations: 0.829 MB / 465.8 MB, free: 4.773 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003316/0.5515, allocations: 413.8 kB / 466.2 MB, free: 4.363 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.999e-05/0.5516, allocations: 0 / 466.2 MB, free: 4.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.5518, allocations: 369.8 kB / 466.6 MB, free: 3.996 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.5528, allocations: 0.6911 MB / 467.3 MB, free: 3.305 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/0.5542, allocations: 1.061 MB / 468.3 MB, free: 2.082 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.5556, allocations: 0.869 MB / 469.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5556, allocations: 8 kB / 469.2 MB, free: 1.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.131/0.6867, allocations: 2.373 MB / 471.6 MB, free: 122.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.6867, allocations: 3.219 kB / 471.6 MB, free: 122.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.66e-05/0.6867, allocations: 13.31 kB / 471.6 MB, free: 122.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.6881, allocations: 0.5696 MB / 472.2 MB, free: 122.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.6895, allocations: 328.8 kB / 472.5 MB, free: 122.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005828/0.6953, allocations: 5.791 MB / 478.3 MB, free: 120.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.6966, allocations: 63.08 kB / 478.4 MB, free: 120.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.6967, allocations: 61.34 kB / 478.4 MB, free: 120.3 MB / 346.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 (157): * Single equations (assignments): 154 * 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.0002514/0.697, allocations: 140.1 kB / 478.5 MB, free: 120.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.6972, allocations: 150.6 kB / 478.7 MB, free: 120.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003328/0.7006, allocations: 2.181 MB / 480.9 MB, free: 120.1 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.7006, allocations: 10.12 kB / 480.9 MB, free: 120.1 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.7006, allocations: 6.031 kB / 480.9 MB, free: 120.1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.7006, allocations: 3.797 kB / 480.9 MB, free: 120.1 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006826/0.7075, allocations: 4.288 MB / 485.2 MB, free: 119.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.7075, allocations: 6.344 kB / 485.2 MB, free: 119.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008869/0.7084, allocations: 203 kB / 485.4 MB, free: 119.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/0.71, allocations: 0.6241 MB / 486 MB, free: 119.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.921e-05/0.7101, allocations: 16.94 kB / 486 MB, free: 119.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006715/0.7168, allocations: 7.4 MB / 493.4 MB, free: 116.1 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.7168, allocations: 10.5 kB / 493.4 MB, free: 116.1 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004206/0.721, allocations: 3.361 MB / 496.8 MB, free: 115.6 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007598/0.7218, allocations: 375.6 kB / 497.2 MB, free: 115.4 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/0.7221, allocations: 9.094 kB / 497.2 MB, free: 115.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008188/0.7229, allocations: 58.36 kB / 497.2 MB, free: 115.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.7231, allocations: 83.08 kB / 497.3 MB, free: 115.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.819e-05/0.7231, allocations: 36.48 kB / 497.3 MB, free: 115.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0009565/0.7241, allocations: 0.7257 MB / 498.1 MB, free: 115.3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001438/0.7256, allocations: 441.3 kB / 498.5 MB, free: 115.3 MB / 346.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 (97): * Single equations (assignments): 94 * 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,75.0%) 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.000432/0.726, allocations: 283.7 kB / 498.8 MB, free: 115.2 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00288/0.7289, allocations: 2.136 MB / 0.4892 GB, free: 114.9 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7289, allocations: 0 / 0.4892 GB, free: 114.9 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001906/0.7308, allocations: 1.344 MB / 0.4905 GB, free: 114.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001496/0.7323, allocations: 278.6 kB / 0.4908 GB, free: 114.4 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006366/0.7387, allocations: 3.624 MB / 0.4943 GB, free: 113.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001581/0.7403, allocations: 1.938 MB / 0.4962 GB, free: 112.2 MB / 346.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7403, allocations: 0 / 0.4962 GB, free: 112.2 MB / 346.7 MB Notification: Performance of Templates: time 0.03519/0.7755, allocations: 22.01 MB / 0.5177 GB, free: 103.7 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1)