Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001067/0.001067, 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.001084/0.001084, allocations: 197.4 kB / 16.14 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.33/1.33, allocations: 205.1 MB / 222 MB, free: 4.73 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.001158/0.001158, allocations: 51.92 kB / 278.1 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.2007, allocations: 46.63 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03889/0.2396, allocations: 40.99 MB / 365.7 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0217/0.2614, allocations: 10.95 MB / 376.6 MB, free: 12 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008685/0.2701, allocations: 259.1 kB / 376.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01933/0.2895, allocations: 8.241 MB / 385.1 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01301/0.3026, allocations: 3.456 MB / 388.6 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007326/0.3099, allocations: 2.269 MB / 390.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01657/0.3265, allocations: 14.1 MB / 405 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03726/0.3638, allocations: 20.99 MB / 425.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01189/0.3757, allocations: 6.218 MB / 432.2 MB, free: 8.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01321/0.389, allocations: 7.855 MB / 440 MB, free: 328 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004965/0.394, allocations: 1.34 MB / 441.4 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007692/0.4017, allocations: 1.726 MB / 443.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006009/0.4077, allocations: 3.517 MB / 446.6 MB, free: 9.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01349/0.4212, allocations: 7.307 MB / 453.9 MB, free: 2.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3283/0.7495, allocations: 26.33 MB / 480.2 MB, free: 40.95 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.295e-06/0.7496, allocations: 5.844 kB / 480.2 MB, free: 40.95 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.7496, allocations: 0 / 480.2 MB, free: 40.95 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007162/0.7503, allocations: 0 / 480.2 MB, free: 40.95 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.05033/0.8006, allocations: 16.06 MB / 496.3 MB, free: 34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.8007, allocations: 7.75 kB / 496.3 MB, free: 34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04883/0.8495, allocations: 9.169 MB / 0.4936 GB, free: 30.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01551/0.8651, allocations: 7.675 MB / 0.5011 GB, free: 23.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008017/0.8659, allocations: 0.972 MB / 0.5021 GB, free: 22.85 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005138/0.8711, allocations: 1.28 MB / 0.5033 GB, free: 21.58 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04793/0.919, allocations: 20.52 MB / 0.5234 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008685/0.9199, allocations: 27.47 kB / 0.5234 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004925/0.9249, allocations: 0.5258 MB / 0.5239 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000744/0.9256, allocations: 0.7462 MB / 0.5246 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04368/0.9693, allocations: 19.24 MB / 0.5434 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1169/1.086, allocations: 65.03 MB / 0.6069 GB, free: 10.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1875/1.274, allocations: 57.29 MB / 0.6629 GB, free: 114.3 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006695/1.28, allocations: 4.193 MB / 0.667 GB, free: 114.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01805/1.299, allocations: 11.68 MB / 0.6784 GB, free: 111.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/1.299, allocations: 68.94 kB / 0.6784 GB, free: 111.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=361): time 4.459e-06/1.299, allocations: 0 / 0.6784 GB, free: 111.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=403): time 0.02999/1.329, allocations: 17.85 MB / 0.6959 GB, free: 103.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/1.329, allocations: 98.27 kB / 0.696 GB, free: 103.8 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00714/1.336, allocations: 5.685 MB / 0.7015 GB, free: 101.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005722/1.336, allocations: 88.89 kB / 0.7016 GB, free: 101.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002399/1.339, allocations: 6.052 MB / 0.7075 GB, free: 96.64 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00109/1.34, allocations: 1.42 MB / 0.7089 GB, free: 95.37 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001873/1.342, allocations: 1.546 MB / 0.7104 GB, free: 93.95 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.454e-05/1.342, allocations: 306.4 kB / 0.7107 GB, free: 93.65 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003901/1.346, allocations: 3.143 MB / 0.7138 GB, free: 91 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005115/1.351, allocations: 6.895 MB / 0.7205 GB, free: 82.92 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/1.361, allocations: 10.81 MB / 0.7311 GB, free: 71.04 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/1.361, allocations: 36 kB / 0.7311 GB, free: 71 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01888/1.38, allocations: 11.03 MB / 0.7419 GB, free: 61.22 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/1.38, allocations: 64.12 kB / 0.7419 GB, free: 61.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/1.38, allocations: 128 kB / 0.742 GB, free: 61.03 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002387/1.383, allocations: 0.9759 MB / 0.743 GB, free: 60.04 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006311/1.389, allocations: 1.86 MB / 0.7448 GB, free: 58.18 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009657/1.399, allocations: 9.546 MB / 0.7541 GB, free: 48.23 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006593/1.405, allocations: 458.7 kB / 0.7546 GB, free: 47.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001746/1.407, allocations: 428 kB / 0.755 GB, free: 47.37 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.009053/1.416, allocations: 4.504 MB / 0.7594 GB, free: 42.85 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002064/1.418, allocations: 0.575 MB / 0.7599 GB, free: 42.27 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/1.431, allocations: 6.708 MB / 0.7665 GB, free: 35.52 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.346e-05/1.431, allocations: 44 kB / 0.7665 GB, free: 35.48 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/1.431, allocations: 8 kB / 0.7665 GB, free: 35.47 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.534e-05/1.432, allocations: 23.92 kB / 0.7666 GB, free: 35.45 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02734/1.459, allocations: 16.5 MB / 0.7827 GB, free: 18.92 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.077e-05/1.459, allocations: 4 kB / 0.7827 GB, free: 18.91 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003157/1.462, allocations: 0.7751 MB / 0.7834 GB, free: 18.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002061/1.464, allocations: 0.8005 MB / 0.7842 GB, free: 17.32 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003708/1.465, allocations: 83.98 kB / 0.7843 GB, free: 17.24 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008048/1.473, allocations: 8.659 MB / 0.7928 GB, free: 8.188 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/1.473, allocations: 12 kB / 0.7928 GB, free: 8.176 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1947/1.667, allocations: 9.823 MB / 0.8024 GB, free: 153.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004031/1.671, allocations: 1.115 MB / 0.8034 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002168/1.674, allocations: 74.84 kB / 0.8035 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004022/1.678, allocations: 229.8 kB / 0.8037 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/1.679, allocations: 269.6 kB / 0.804 GB, free: 153.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006144/1.679, allocations: 117.1 kB / 0.8041 GB, free: 153.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.008358/1.688, allocations: 3.753 MB / 0.8078 GB, free: 153.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.91e-07/1.688, allocations: 3.188 kB / 0.8078 GB, free: 153.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008901/1.697, allocations: 2.044 MB / 0.8098 GB, free: 153.2 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.0008183/1.698, allocations: 255.3 kB / 0.81 GB, free: 153.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01147/1.709, allocations: 8.225 MB / 0.818 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/1.709, allocations: 3.969 kB / 0.818 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006331/1.715, allocations: 3.62 MB / 0.8216 GB, free: 150.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01067/1.726, allocations: 1.333 MB / 0.8229 GB, free: 149.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04703/1.773, allocations: 26.9 MB / 0.8492 GB, free: 132.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009201/1.782, allocations: 7.697 MB / 0.8567 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006993/1.789, allocations: 2.386 MB / 0.859 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001429/1.791, allocations: 458.2 kB / 0.8594 GB, free: 124.4 MB / 478.1 MB Notification: Performance of SimCode: time 1.222e-06/1.791, allocations: 4 kB / 0.8594 GB, free: 124.4 MB / 478.1 MB Notification: Performance of Templates: time 0.1155/1.906, allocations: 79.48 MB / 0.9371 GB, free: 48.77 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)