Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.00179/0.00179, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002498/0.002498, allocations: 189.9 kB / 16.13 MB, free: 6.66 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.34/1.34, allocations: 205.1 MB / 222 MB, free: 4.715 MB / 174.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.001094/0.001094, allocations: 51.92 kB / 278.1 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2015, allocations: 46.62 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03996/0.2415, allocations: 40.98 MB / 365.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02336/0.2649, allocations: 10.96 MB / 376.7 MB, free: 8 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008311/0.2733, allocations: 255.1 kB / 376.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01921/0.2926, allocations: 8.249 MB / 385.1 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01305/0.3057, allocations: 3.441 MB / 388.6 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007372/0.313, allocations: 2.281 MB / 390.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01847/0.3315, allocations: 14.09 MB / 405 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03368/0.3653, allocations: 20.99 MB / 426 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01092/0.3762, allocations: 6.206 MB / 432.2 MB, free: 8.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01197/0.3883, allocations: 7.866 MB / 440 MB, free: 324 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003828/0.3921, allocations: 1.336 MB / 441.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005084/0.3972, allocations: 1.726 MB / 443.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00346/0.4007, allocations: 3.524 MB / 446.6 MB, free: 9.723 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01228/0.413, allocations: 7.3 MB / 453.9 MB, free: 2.391 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.31/0.7231, allocations: 26.34 MB / 480.2 MB, free: 40.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.7231, allocations: 0 / 480.2 MB, free: 40.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.7231, allocations: 0 / 480.2 MB, free: 40.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000661/0.7238, allocations: 1.906 kB / 480.2 MB, free: 40.88 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.0413/0.7651, allocations: 16.06 MB / 496.3 MB, free: 33.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.7651, allocations: 7.594 kB / 496.3 MB, free: 33.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04559/0.8107, allocations: 9.17 MB / 0.4936 GB, free: 30.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01434/0.8251, allocations: 7.661 MB / 0.5011 GB, free: 23.76 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006285/0.8258, allocations: 0.9764 MB / 0.5021 GB, free: 22.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004746/0.8305, allocations: 1.288 MB / 0.5033 GB, free: 21.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04722/0.8778, allocations: 20.51 MB / 0.5234 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004643/0.8783, allocations: 23.36 kB / 0.5234 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004261/0.8825, allocations: 0.5273 MB / 0.5239 GB, free: 428 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006519/0.8832, allocations: 0.7497 MB / 0.5246 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04042/0.9236, allocations: 19.24 MB / 0.5434 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.115/1.039, allocations: 65.03 MB / 0.6069 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2041/1.243, allocations: 57.28 MB / 0.6629 GB, free: 114.5 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006897/1.25, allocations: 4.191 MB / 0.667 GB, free: 114.4 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01727/1.267, allocations: 11.69 MB / 0.6784 GB, free: 111.7 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/1.267, allocations: 72.38 kB / 0.6784 GB, free: 111.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=361): time 5.29e-06/1.267, allocations: 0 / 0.6784 GB, free: 111.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=403): time 0.03003/1.297, allocations: 17.85 MB / 0.6959 GB, free: 104.1 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/1.297, allocations: 94.7 kB / 0.696 GB, free: 104 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007007/1.304, allocations: 5.691 MB / 0.7015 GB, free: 101.9 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004001/1.305, allocations: 88.39 kB / 0.7016 GB, free: 101.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002368/1.307, allocations: 6.048 MB / 0.7075 GB, free: 96.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009742/1.308, allocations: 1.424 MB / 0.7089 GB, free: 95.42 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001845/1.31, allocations: 1.54 MB / 0.7104 GB, free: 94.01 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.738e-05/1.31, allocations: 305.1 kB / 0.7107 GB, free: 93.71 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003762/1.314, allocations: 3.141 MB / 0.7138 GB, free: 91.06 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005014/1.319, allocations: 6.9 MB / 0.7205 GB, free: 82.98 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009516/1.328, allocations: 10.81 MB / 0.7311 GB, free: 71.09 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.943e-05/1.328, allocations: 36 kB / 0.7311 GB, free: 71.05 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01498/1.343, allocations: 11.03 MB / 0.7419 GB, free: 61.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.627e-05/1.343, allocations: 64.16 kB / 0.7419 GB, free: 61.14 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001568/1.344, allocations: 124 kB / 0.742 GB, free: 61.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002215/1.346, allocations: 0.9806 MB / 0.743 GB, free: 60.02 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005397/1.351, allocations: 1.852 MB / 0.7448 GB, free: 58.16 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009169/1.36, allocations: 9.55 MB / 0.7541 GB, free: 48.22 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006208/1.367, allocations: 451.4 kB / 0.7546 GB, free: 47.78 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009713/1.368, allocations: 428 kB / 0.755 GB, free: 47.36 MB / 478.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.007047/1.375, allocations: 4.515 MB / 0.7594 GB, free: 42.83 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001275/1.376, allocations: 0.5672 MB / 0.7599 GB, free: 42.25 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009618/1.386, allocations: 6.712 MB / 0.7665 GB, free: 35.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.312e-05/1.386, allocations: 40 kB / 0.7665 GB, free: 35.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.456e-05/1.386, allocations: 12 kB / 0.7665 GB, free: 35.45 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.269e-05/1.386, allocations: 27.91 kB / 0.7666 GB, free: 35.43 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02486/1.411, allocations: 16.48 MB / 0.7827 GB, free: 18.91 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/1.411, allocations: 4 kB / 0.7827 GB, free: 18.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003126/1.414, allocations: 0.7805 MB / 0.7834 GB, free: 18.12 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/1.416, allocations: 0.7963 MB / 0.7842 GB, free: 17.31 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002832/1.416, allocations: 91.97 kB / 0.7843 GB, free: 17.22 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007877/1.424, allocations: 8.658 MB / 0.7927 GB, free: 8.168 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/1.424, allocations: 15.88 kB / 0.7928 GB, free: 8.152 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2245/1.649, allocations: 9.817 MB / 0.8023 GB, free: 153.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003449/1.652, allocations: 1.111 MB / 0.8034 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001889/1.654, allocations: 76.25 kB / 0.8035 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00379/1.658, allocations: 226.3 kB / 0.8037 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009052/1.659, allocations: 278.5 kB / 0.804 GB, free: 153.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004816/1.659, allocations: 118.3 kB / 0.8041 GB, free: 153.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007218/1.666, allocations: 3.751 MB / 0.8078 GB, free: 153.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.666, allocations: 0 / 0.8078 GB, free: 153.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008208/1.675, allocations: 2.044 MB / 0.8098 GB, free: 153.3 MB / 478.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.0008138/1.675, allocations: 255.8 kB / 0.81 GB, free: 153.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01141/1.687, allocations: 8.228 MB / 0.818 GB, free: 152.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.687, allocations: 1.969 kB / 0.818 GB, free: 152.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005412/1.692, allocations: 3.621 MB / 0.8216 GB, free: 150.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0075/1.7, allocations: 1.326 MB / 0.8229 GB, free: 149.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03968/1.74, allocations: 26.91 MB / 0.8492 GB, free: 132.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01079/1.75, allocations: 7.697 MB / 0.8567 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007604/1.758, allocations: 2.396 MB / 0.859 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/1.76, allocations: 446.1 kB / 0.8594 GB, free: 124.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/1.76, allocations: 4 kB / 0.8594 GB, free: 124.5 MB / 478.1 MB Notification: Performance of Templates: time 0.1154/1.875, allocations: 79.48 MB / 0.9371 GB, free: 48.74 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)