Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 103.1 kB / 16.5 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 186.6 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 55.92 kB / 279.4 MB, free: 3.535 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08103/0.08221, allocations: 46.61 MB / 326 MB, free: 4.855 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04015/0.1224, allocations: 40.99 MB / 367 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02072/0.1432, allocations: 10.96 MB / 377.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007123/0.1503, allocations: 259.1 kB / 378.2 MB, free: 436 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1612/0.3116, allocations: 8.222 MB / 386.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01232/0.3239, allocations: 3.447 MB / 389.9 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006051/0.33, allocations: 2.283 MB / 392.1 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01636/0.3464, allocations: 14.09 MB / 406.2 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03137/0.3778, allocations: 21 MB / 427.2 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01332/0.3911, allocations: 6.205 MB / 433.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01285/0.404, allocations: 7.871 MB / 441.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004984/0.4091, allocations: 1.336 MB / 442.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007876/0.417, allocations: 1.73 MB / 444.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004866/0.4219, allocations: 3.511 MB / 447.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01283/0.4347, allocations: 7.302 MB / 455.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02572/0.4605, allocations: 26.34 MB / 481.5 MB, free: 3.121 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.4605, allocations: 0 / 481.5 MB, free: 3.121 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4605, allocations: 0 / 481.5 MB, free: 3.121 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006191/0.4611, allocations: 0 / 481.5 MB, free: 3.121 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.04249/0.5036, allocations: 16.05 MB / 497.6 MB, free: 3.062 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.5037, allocations: 8.031 kB / 497.6 MB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05005/0.5538, allocations: 9.173 MB / 0.4949 GB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01535/0.5691, allocations: 7.669 MB / 0.5024 GB, free: 2.281 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009193/0.5701, allocations: 0.9696 MB / 0.5033 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004198/0.5743, allocations: 1.275 MB / 0.5046 GB, free: 64 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04695/0.6213, allocations: 20.52 MB / 0.5246 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004849/0.6218, allocations: 27.73 kB / 0.5246 GB, free: 11.45 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003185/0.625, allocations: 0.5294 MB / 0.5252 GB, free: 10.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007017/0.6257, allocations: 0.7416 MB / 0.5259 GB, free: 10.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3482/0.9739, allocations: 19.23 MB / 0.5447 GB, free: 135.4 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1066/1.081, allocations: 65.04 MB / 0.6082 GB, free: 90.69 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03079/1.111, allocations: 57.29 MB / 0.6641 GB, free: 26.69 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006502/1.118, allocations: 4.187 MB / 0.6682 GB, free: 22.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01776/1.136, allocations: 11.68 MB / 0.6796 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.319e-05/1.136, allocations: 73.41 kB / 0.6797 GB, free: 10.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 4.929e-06/1.136, allocations: 0 / 0.6797 GB, free: 10.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03317/1.169, allocations: 17.85 MB / 0.6971 GB, free: 8.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/1.169, allocations: 98.58 kB / 0.6972 GB, free: 8.66 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009704/1.179, allocations: 5.682 MB / 0.7028 GB, free: 3.004 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005703/1.179, allocations: 89.69 kB / 0.7029 GB, free: 2.91 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1697/1.349, allocations: 6.051 MB / 0.7088 GB, free: 146.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001489/1.351, allocations: 1.411 MB / 0.7101 GB, free: 145.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002616/1.353, allocations: 1.548 MB / 0.7117 GB, free: 145.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.074e-05/1.353, allocations: 305.6 kB / 0.7119 GB, free: 145.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00479/1.358, allocations: 3.144 MB / 0.715 GB, free: 144.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006357/1.364, allocations: 6.892 MB / 0.7217 GB, free: 138.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0105/1.375, allocations: 10.81 MB / 0.7323 GB, free: 130.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001343/1.375, allocations: 39.47 kB / 0.7323 GB, free: 130.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01633/1.391, allocations: 11.02 MB / 0.7431 GB, free: 125.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001433/1.392, allocations: 59.94 kB / 0.7432 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002501/1.392, allocations: 128.3 kB / 0.7433 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002559/1.394, allocations: 0.983 MB / 0.7442 GB, free: 125.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00584/1.4, allocations: 1.864 MB / 0.7461 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009402/1.41, allocations: 9.539 MB / 0.7554 GB, free: 118.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005961/1.416, allocations: 456.3 kB / 0.7558 GB, free: 118.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001266/1.417, allocations: 428.3 kB / 0.7562 GB, free: 118.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (958): * Single equations (assignments): 953 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007355/1.424, allocations: 4.52 MB / 0.7606 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/1.426, allocations: 0.5672 MB / 0.7612 GB, free: 115.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009618/1.435, allocations: 6.708 MB / 0.7677 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/1.435, allocations: 40 kB / 0.7678 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/1.435, allocations: 12 kB / 0.7678 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.195e-05/1.435, allocations: 21.42 kB / 0.7678 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02446/1.46, allocations: 16.49 MB / 0.7839 GB, free: 95.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.36e-05/1.46, allocations: 0 / 0.7839 GB, free: 95.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003196/1.463, allocations: 0.7884 MB / 0.7847 GB, free: 94.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002118/1.465, allocations: 0.7924 MB / 0.7855 GB, free: 93.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003448/1.466, allocations: 83.97 kB / 0.7855 GB, free: 93.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008308/1.474, allocations: 8.663 MB / 0.794 GB, free: 84.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/1.474, allocations: 7.938 kB / 0.794 GB, free: 84.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01367/1.488, allocations: 9.819 MB / 0.8036 GB, free: 74.81 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002462/1.49, allocations: 1.115 MB / 0.8047 GB, free: 73.67 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001418/1.491, allocations: 73.42 kB / 0.8048 GB, free: 73.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003242/1.495, allocations: 231.7 kB / 0.805 GB, free: 73.38 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006438/1.495, allocations: 278.6 kB / 0.8052 GB, free: 73.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003329/1.496, allocations: 116 kB / 0.8054 GB, free: 72.99 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00655/1.502, allocations: 3.75 MB / 0.809 GB, free: 69.27 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/1.502, allocations: 4 kB / 0.809 GB, free: 69.27 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008815/1.511, allocations: 2.042 MB / 0.811 GB, free: 67.23 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009989/1.512, allocations: 255.6 kB / 0.8113 GB, free: 66.98 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01279/1.525, allocations: 8.216 MB / 0.8193 GB, free: 58.69 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.525, allocations: 4.438 kB / 0.8193 GB, free: 58.69 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00578/1.531, allocations: 3.623 MB / 0.8228 GB, free: 54.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01076/1.542, allocations: 1.33 MB / 0.8241 GB, free: 53.68 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04233/1.584, allocations: 26.91 MB / 0.8504 GB, free: 26.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01193/1.596, allocations: 7.692 MB / 0.8579 GB, free: 19.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.008409/1.604, allocations: 2.401 MB / 0.8603 GB, free: 16.61 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002189/1.607, allocations: 451.3 kB / 0.8607 GB, free: 16.17 MB / 462.1 MB Notification: Performance of SimCode: time 2.154e-06/1.607, allocations: 0 / 0.8607 GB, free: 16.17 MB / 462.1 MB Notification: Performance of Templates: time 0.3008/1.907, allocations: 79.47 MB / 0.9383 GB, free: 93.22 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)