Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") [: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.001772/0.001772, allocations: 188.7 kB / 8.135 MB, free: 2.211 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.34/1.34, allocations: 194.2 MB / 202.8 MB, free: 8.723 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.00176/0.00176, allocations: 112.8 kB / 247.7 MB, free: 6.281 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.973e-06/7.023e-06, allocations: 3.938 kB / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06914/0.06917, allocations: 44.49 MB / 342.1 MB, free: 11.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2206/0.2898, allocations: 107.6 MB / 449.6 MB, free: 3.961 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002157/0.2901, allocations: 84.27 kB / 449.7 MB, free: 3.918 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1587/0.4488, allocations: 57.23 MB / 0.4951 GB, free: 1.789 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002436/0.4491, allocations: 79.88 kB / 0.4951 GB, free: 1.711 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: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.006301/0.4554, allocations: 2.853 MB / 0.4979 GB, free: 14.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.4554, allocations: 8.031 kB / 0.4979 GB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001377/0.4568, allocations: 395.6 kB / 0.4983 GB, free: 14.39 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004671/0.4615, allocations: 2.195 MB / 0.5004 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001028/0.4616, allocations: 92 kB / 0.5005 GB, free: 12.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004804/0.4621, allocations: 171.9 kB / 0.5007 GB, free: 11.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005002/0.4671, allocations: 2.714 MB / 0.5033 GB, free: 9.168 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005676/0.4728, allocations: 3.219 MB / 0.5065 GB, free: 5.805 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-05/0.4729, allocations: 15.89 kB / 0.5065 GB, free: 5.789 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002703/0.4732, allocations: 4 kB / 0.5065 GB, free: 5.785 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001258/0.4733, allocations: 133.4 kB / 0.5066 GB, free: 5.652 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.119/0.5924, allocations: 11.09 MB / 0.5175 GB, free: 100.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.5939, allocations: 1.103 MB / 0.5185 GB, free: 100.5 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001199/0.5951, allocations: 0.9829 MB / 0.5195 GB, free: 100.4 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002965/0.5954, allocations: 229.5 kB / 0.5197 GB, free: 100.3 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.5955, allocations: 50.47 kB / 0.5198 GB, free: 100.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=133): time 3.457e-06/0.5955, allocations: 0 / 0.5198 GB, free: 100.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=154): time 0.009255/0.6047, allocations: 5.637 MB / 0.5253 GB, free: 99.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.268e-05/0.6048, allocations: 70.38 kB / 0.5253 GB, free: 99.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001793/0.6066, allocations: 1.477 MB / 0.5268 GB, free: 99.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.525e-05/0.6067, allocations: 25.7 kB / 0.5268 GB, free: 99.29 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003965/0.6071, allocations: 1.109 MB / 0.5279 GB, free: 98.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000389/0.6075, allocations: 0.507 MB / 0.5284 GB, free: 98.53 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.652e-05/0.6076, allocations: 0 / 0.5284 GB, free: 98.53 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.009e-05/0.6077, allocations: 385.5 kB / 0.5288 GB, free: 98.22 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001044/0.6087, allocations: 0.8558 MB / 0.5296 GB, free: 98.22 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001259/0.61, allocations: 1.389 MB / 0.5309 GB, free: 97.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001343/0.6114, allocations: 1.102 MB / 0.532 GB, free: 97.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.6114, allocations: 6.562 kB / 0.532 GB, free: 97.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=240) (initialization): time 0.004151/0.6155, allocations: 2.85 MB / 0.5348 GB, free: 97.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.6156, allocations: 13.77 kB / 0.5348 GB, free: 97.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.6156, allocations: 17.09 kB / 0.5348 GB, free: 97.39 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001314/0.6169, allocations: 0.5388 MB / 0.5354 GB, free: 97.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.6186, allocations: 425.1 kB / 0.5358 GB, free: 97.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005684/0.6243, allocations: 5.719 MB / 0.5414 GB, free: 94.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.6258, allocations: 68.05 kB / 0.5414 GB, free: 94.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001607/0.6259, allocations: 80.05 kB / 0.5415 GB, free: 94.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 211 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002862/0.6262, allocations: 171.8 kB / 0.5417 GB, free: 94.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002953/0.6265, allocations: 194.9 kB / 0.5418 GB, free: 94.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/0.6305, allocations: 2.557 MB / 0.5443 GB, free: 94.49 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-06/0.6305, allocations: 20.91 kB / 0.5444 GB, free: 94.49 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.6306, allocations: 3.906 kB / 0.5444 GB, free: 94.49 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.6306, allocations: 6.984 kB / 0.5444 GB, free: 94.49 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007775/0.6384, allocations: 5.318 MB / 0.5496 GB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.6384, allocations: 3.688 kB / 0.5496 GB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001169/0.6396, allocations: 249.9 kB / 0.5498 GB, free: 93.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.6411, allocations: 0.5705 MB / 0.5504 GB, free: 93.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.6412, allocations: 14.45 kB / 0.5504 GB, free: 93.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00686/0.6481, allocations: 7.332 MB / 0.5575 GB, free: 90.22 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.6481, allocations: 3.281 kB / 0.5575 GB, free: 90.22 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005042/0.6532, allocations: 4.08 MB / 0.5615 GB, free: 88.83 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000976/0.6542, allocations: 481.2 kB / 0.562 GB, free: 88.53 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003742/0.6545, allocations: 7.875 kB / 0.562 GB, free: 88.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.6557, allocations: 55.62 kB / 0.562 GB, free: 88.53 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.6558, allocations: 83 kB / 0.5621 GB, free: 88.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.656, allocations: 43.95 kB / 0.5622 GB, free: 88.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001509/0.6575, allocations: 1.1 MB / 0.5632 GB, free: 88.06 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001845/0.6593, allocations: 0.5201 MB / 0.5638 GB, free: 88.04 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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 {(5,76.0%) 20,(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.0005071/0.6599, allocations: 387.8 kB / 0.5641 GB, free: 87.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003055/0.6629, allocations: 2.491 MB / 0.5666 GB, free: 86.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6629, allocations: 0 / 0.5666 GB, free: 86.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001913/0.6649, allocations: 1.478 MB / 0.568 GB, free: 86.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.6668, allocations: 400.3 kB / 0.5684 GB, free: 86.17 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007848/0.6746, allocations: 4.622 MB / 0.5729 GB, free: 84.43 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/0.6771, allocations: 2.4 MB / 0.5752 GB, free: 83.41 MB / 394.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6771, allocations: 0 / 0.5752 GB, free: 83.41 MB / 394.7 MB Notification: Performance of Templates: time 0.04591/0.723, allocations: 28.03 MB / 0.6026 GB, free: 79.45 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)