Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001135/0.001135, allocations: 187.9 kB / 8.353 MB, free: 0.707 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.398/1.398, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001708/0.001708, allocations: 116.4 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.764e-05/1.767e-05, allocations: 7.984 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.367/0.4684, allocations: 112.4 MB / 455 MB, free: 72 kB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.4687, allocations: 82.64 kB / 455.1 MB, free: 32 kB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4441/0.9129, allocations: 79.11 MB / 0.5216 GB, free: 69.41 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.9129, allocations: 0 / 0.5216 GB, free: 69.41 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0003167/0.9132, allocations: 96.77 kB / 0.5217 GB, free: 69.4 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.01005/0.9233, allocations: 3.425 MB / 0.5251 GB, free: 68.17 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.9233, allocations: 8.844 kB / 0.5251 GB, free: 68.17 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003943/0.9273, allocations: 0.6394 MB / 0.5257 GB, free: 67.96 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008618/0.9359, allocations: 3.353 MB / 0.529 GB, free: 67.4 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.9361, allocations: 118.3 kB / 0.5291 GB, free: 67.4 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006954/0.9368, allocations: 202.6 kB / 0.5293 GB, free: 67.4 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005595/0.9424, allocations: 3.185 MB / 0.5324 GB, free: 67.38 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007014/0.9495, allocations: 3.817 MB / 0.5361 GB, free: 66.93 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.173e-05/0.9496, allocations: 10.19 kB / 0.5361 GB, free: 66.93 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000275/0.9499, allocations: 2.625 kB / 0.5361 GB, free: 66.93 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001913/0.9501, allocations: 163.7 kB / 0.5363 GB, free: 66.92 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02282/0.9729, allocations: 13.89 MB / 0.5499 GB, free: 63.51 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0053/0.9782, allocations: 5.33 MB / 0.5551 GB, free: 59.61 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001937/0.9802, allocations: 1.217 MB / 0.5563 GB, free: 59.58 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006848/0.9871, allocations: 3.807 MB / 0.56 GB, free: 58.86 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.578e-05/0.9872, allocations: 48.09 kB / 0.56 GB, free: 58.82 MB / 395.1 MB Notification: Performance of pre-optimization done (n=131): time 4.679e-06/0.9872, allocations: 5.406 kB / 0.56 GB, free: 58.82 MB / 395.1 MB Notification: Performance of matching and sorting (n=135): time 0.00785/0.995, allocations: 4.305 MB / 0.5642 GB, free: 56.77 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.9951, allocations: 64.16 kB / 0.5643 GB, free: 56.7 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.9973, allocations: 1.548 MB / 0.5658 GB, free: 56.03 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.9974, allocations: 25.7 kB / 0.5658 GB, free: 56 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007768/0.9982, allocations: 1.651 MB / 0.5674 GB, free: 54.74 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002878/0.9985, allocations: 452.8 kB / 0.5679 GB, free: 54.39 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.397e-05/0.9986, allocations: 0.6562 kB / 0.5679 GB, free: 54.39 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.9987, allocations: 376.1 kB / 0.5682 GB, free: 54.05 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008174/0.9996, allocations: 0.6678 MB / 0.5689 GB, free: 53.79 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/1.001, allocations: 1.278 MB / 0.5701 GB, free: 52.73 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/1.002, allocations: 0.9952 MB / 0.5711 GB, free: 52.35 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.014e-05/1.002, allocations: 3.688 kB / 0.5711 GB, free: 52.35 MB / 395.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003327/1.005, allocations: 2.349 MB / 0.5734 GB, free: 51.46 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/1.005, allocations: 15.34 kB / 0.5734 GB, free: 51.46 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/1.005, allocations: 18.5 kB / 0.5734 GB, free: 51.46 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000324/1.006, allocations: 152.5 kB / 0.5736 GB, free: 51.4 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/1.007, allocations: 461.1 kB / 0.574 GB, free: 51.39 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/1.009, allocations: 2.955 MB / 0.5769 GB, free: 48.64 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/1.011, allocations: 78.39 kB / 0.577 GB, free: 48.64 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000181/1.011, allocations: 79.81 kB / 0.5771 GB, free: 48.62 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 225 * 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 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003261/1.011, allocations: 165 kB / 0.5772 GB, free: 48.5 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003578/1.012, allocations: 202.7 kB / 0.5774 GB, free: 48.39 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003818/1.016, allocations: 2.133 MB / 0.5795 GB, free: 47.41 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/1.016, allocations: 18.33 kB / 0.5795 GB, free: 47.41 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/1.016, allocations: 3.906 kB / 0.5795 GB, free: 47.41 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.728e-05/1.016, allocations: 6.75 kB / 0.5795 GB, free: 47.41 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009477/1.025, allocations: 4.738 MB / 0.5841 GB, free: 45.27 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/1.025, allocations: 3.344 kB / 0.5841 GB, free: 45.27 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/1.026, allocations: 241.7 kB / 0.5844 GB, free: 45.27 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007067/1.027, allocations: 269.2 kB / 0.5846 GB, free: 45.16 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.954e-05/1.027, allocations: 15 kB / 0.5847 GB, free: 45.16 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005022/1.032, allocations: 6.828 MB / 0.5913 GB, free: 39.14 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.032, allocations: 3.719 kB / 0.5913 GB, free: 39.14 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004643/1.037, allocations: 3.319 MB / 0.5946 GB, free: 37.36 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/1.038, allocations: 453.3 kB / 0.595 GB, free: 37.06 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002647/1.038, allocations: 7.5 kB / 0.595 GB, free: 37.05 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009391/1.039, allocations: 63.5 kB / 0.5951 GB, free: 37.05 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001928/1.04, allocations: 90.73 kB / 0.5951 GB, free: 37.04 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.648e-05/1.04, allocations: 38.2 kB / 0.5952 GB, free: 37.03 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001702/1.041, allocations: 1.158 MB / 0.5963 GB, free: 36.51 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.041, allocations: 0 / 0.5963 GB, free: 36.51 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00223/1.044, allocations: 0.5199 MB / 0.5968 GB, free: 36.5 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006139/1.044, allocations: 430.3 kB / 0.5972 GB, free: 36.34 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002455/1.047, allocations: 1.97 MB / 0.5992 GB, free: 35.39 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/1.047, allocations: 3.938 kB / 0.5992 GB, free: 35.39 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/1.048, allocations: 1.327 MB / 0.6005 GB, free: 34.61 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/1.051, allocations: 432.3 kB / 0.6009 GB, free: 34.49 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008993/1.06, allocations: 4.771 MB / 0.6055 GB, free: 32.46 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002032/1.062, allocations: 2.469 MB / 0.6079 GB, free: 31.39 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001757/1.063, allocations: 0.4958 MB / 0.6084 GB, free: 31.34 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003812/1.064, allocations: 146 kB / 0.6086 GB, free: 31.32 MB / 395.1 MB Notification: Performance of SimCode: time 1.292e-06/1.064, allocations: 3.531 kB / 0.6086 GB, free: 31.32 MB / 395.1 MB Notification: Performance of Templates: time 0.04132/1.105, allocations: 23.62 MB / 0.6316 GB, free: 24.7 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)