Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") [: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.001101/0.001101, allocations: 189.4 kB / 8.132 MB, free: 2.223 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.092/1.092, allocations: 194.2 MB / 202.8 MB, free: 8.773 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.001733/0.001733, allocations: 114.9 kB / 247.7 MB, free: 6.215 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.586e-06/8.686e-06, allocations: 4 kB / 297.6 MB, free: 8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07657/0.07659, allocations: 44.48 MB / 342.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2416/0.3183, allocations: 109.3 MB / 451.3 MB, free: 2.719 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/0.3186, allocations: 83.27 kB / 451.4 MB, free: 2.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.3338/0.6524, allocations: 73.49 MB / 0.5126 GB, free: 72.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002443/0.6527, allocations: 82.78 kB / 0.5127 GB, free: 72.85 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.006776/0.6595, allocations: 3.123 MB / 0.5157 GB, free: 72.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.6595, allocations: 7.75 kB / 0.5157 GB, free: 72.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002515/0.6621, allocations: 0.5937 MB / 0.5163 GB, free: 72.05 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006609/0.6687, allocations: 3.1 MB / 0.5193 GB, free: 71.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.445e-05/0.6688, allocations: 101.2 kB / 0.5194 GB, free: 71.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004936/0.6693, allocations: 188.8 kB / 0.5196 GB, free: 71.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004893/0.6742, allocations: 2.901 MB / 0.5224 GB, free: 71.55 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005647/0.6799, allocations: 3.499 MB / 0.5259 GB, free: 71.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.543e-05/0.68, allocations: 1.875 kB / 0.5259 GB, free: 71.14 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000246/0.6802, allocations: 5.719 kB / 0.5259 GB, free: 71.14 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.6803, allocations: 148.5 kB / 0.526 GB, free: 71.13 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01661/0.697, allocations: 12.82 MB / 0.5385 GB, free: 67.74 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.698, allocations: 0.9003 MB / 0.5394 GB, free: 67.72 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.6994, allocations: 0.992 MB / 0.5404 GB, free: 67.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00382/0.7032, allocations: 2.685 MB / 0.543 GB, free: 67.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.7033, allocations: 51.56 kB / 0.543 GB, free: 67.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 2.975e-06/0.7033, allocations: 0.9375 kB / 0.543 GB, free: 67.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=158): time 0.009953/0.7133, allocations: 5.326 MB / 0.5482 GB, free: 66.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.7133, allocations: 65.88 kB / 0.5483 GB, free: 65.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001902/0.7152, allocations: 1.376 MB / 0.5496 GB, free: 65.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.565e-05/0.7153, allocations: 29.67 kB / 0.5497 GB, free: 65.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000503/0.7158, allocations: 1.229 MB / 0.5509 GB, free: 65.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003045/0.7161, allocations: 0.5112 MB / 0.5514 GB, free: 64.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.7162, allocations: 0 / 0.5514 GB, free: 64.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.7164, allocations: 385.8 kB / 0.5517 GB, free: 64.39 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.7174, allocations: 0.7629 MB / 0.5525 GB, free: 64.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.7187, allocations: 1.352 MB / 0.5538 GB, free: 63.3 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/0.7203, allocations: 1.055 MB / 0.5548 GB, free: 62.91 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.7203, allocations: 3.969 kB / 0.5548 GB, free: 62.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.003729/0.724, allocations: 2.376 MB / 0.5572 GB, free: 62.07 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.7241, allocations: 11.78 kB / 0.5572 GB, free: 62.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.402e-05/0.7241, allocations: 16.94 kB / 0.5572 GB, free: 62.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003651/0.7245, allocations: 116.6 kB / 0.5573 GB, free: 62.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002003/0.7265, allocations: 0.491 MB / 0.5578 GB, free: 62.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008469/0.7273, allocations: 1.264 MB / 0.559 GB, free: 60.79 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.7288, allocations: 57.36 kB / 0.5591 GB, free: 60.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.729, allocations: 88.59 kB / 0.5592 GB, free: 60.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (246): * Single equations (assignments): 243 * 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: 1 * 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: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002832/0.7293, allocations: 165.9 kB / 0.5593 GB, free: 60.64 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002773/0.7296, allocations: 189.7 kB / 0.5595 GB, free: 60.54 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003222/0.7328, allocations: 1.984 MB / 0.5614 GB, free: 59.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.7328, allocations: 17.59 kB / 0.5614 GB, free: 59.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.7328, allocations: 3.875 kB / 0.5615 GB, free: 59.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.7329, allocations: 10.64 kB / 0.5615 GB, free: 59.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007775/0.7406, allocations: 4.848 MB / 0.5662 GB, free: 57.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.7407, allocations: 3.75 kB / 0.5662 GB, free: 57.6 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/0.7422, allocations: 335.6 kB / 0.5665 GB, free: 57.59 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002925/0.7425, allocations: 90.7 kB / 0.5666 GB, free: 57.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.7426, allocations: 18.39 kB / 0.5666 GB, free: 57.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006669/0.7433, allocations: 1.231 MB / 0.5678 GB, free: 56.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/0.7433, allocations: 3.969 kB / 0.5678 GB, free: 56.31 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004117/0.7475, allocations: 3.332 MB / 0.5711 GB, free: 54.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008795/0.7484, allocations: 462.3 kB / 0.5715 GB, free: 54.37 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003698/0.7487, allocations: 3.812 kB / 0.5715 GB, free: 54.37 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.7498, allocations: 40.81 kB / 0.5716 GB, free: 54.37 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.75, allocations: 80.5 kB / 0.5716 GB, free: 54.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.986e-05/0.7501, allocations: 46.88 kB / 0.5717 GB, free: 54.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00147/0.7516, allocations: 1.021 MB / 0.5727 GB, free: 53.91 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001916/0.7535, allocations: 0.5011 MB / 0.5732 GB, free: 53.9 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 152 * 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: 1 * 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: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006755/0.7542, allocations: 430.9 kB / 0.5736 GB, free: 53.74 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003624/0.7578, allocations: 2.22 MB / 0.5758 GB, free: 52.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.7578, allocations: 1.156 kB / 0.5758 GB, free: 52.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001551/0.7594, allocations: 1.203 MB / 0.5769 GB, free: 52.13 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002128/0.7616, allocations: 379.4 kB / 0.5773 GB, free: 52.04 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.7734, allocations: 4.447 MB / 0.5816 GB, free: 50.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003411/0.7768, allocations: 2.475 MB / 0.5841 GB, free: 49.19 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7768, allocations: 0 / 0.5841 GB, free: 49.19 MB / 394.7 MB Notification: Performance of Templates: time 0.05003/0.8269, allocations: 25.82 MB / 0.6093 GB, free: 45.66 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)