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.001083/0.001083, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.0013/0.0013, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.332/1.332, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0004312/0.0004313, allocations: 8 kB / 280.8 MB, free: 3.387 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08336/0.0838, allocations: 47.59 MB / 328.3 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03968/0.1235, allocations: 39.41 MB / 367.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02284/0.1464, allocations: 10.88 MB / 378.6 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007377/0.1538, allocations: 255.1 kB / 378.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1812/0.3351, allocations: 2.265 MB / 381.1 MB, free: 11.33 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01358/0.3487, allocations: 3.429 MB / 384.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00713/0.3558, allocations: 2.071 MB / 386.6 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02066/0.3765, allocations: 14.08 MB / 400.7 MB, free: 10.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03908/0.4156, allocations: 24.51 MB / 425.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01155/0.4273, allocations: 5.087 MB / 430.3 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0108/0.4381, allocations: 6.389 MB / 436.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002607/0.4407, allocations: 0.7968 MB / 437.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005063/0.4458, allocations: 1.184 MB / 438.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002975/0.4488, allocations: 2.736 MB / 441.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008846/0.4577, allocations: 6.397 MB / 447.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02458/0.4823, allocations: 25.33 MB / 473.1 MB, free: 11.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4823, allocations: 0 / 473.1 MB, free: 11.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.4823, allocations: 4 kB / 473.2 MB, free: 11.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007302/0.4831, allocations: 0 / 473.2 MB, free: 11.98 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.03301/0.5161, allocations: 13.21 MB / 486.4 MB, free: 14.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.5161, allocations: 12.03 kB / 486.4 MB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0491/0.5652, allocations: 9.21 MB / 495.6 MB, free: 5.594 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01456/0.5798, allocations: 7.673 MB / 0.4915 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007806/0.5807, allocations: 0.9763 MB / 0.4924 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003336/0.584, allocations: 1.277 MB / 0.4937 GB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04144/0.6255, allocations: 20.52 MB / 0.5137 GB, free: 7.09 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002916/0.6258, allocations: 23.8 kB / 0.5137 GB, free: 7.066 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00161/0.6274, allocations: 0.5274 MB / 0.5142 GB, free: 6.555 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006741/0.6281, allocations: 0.7455 MB / 0.515 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03686/0.665, allocations: 19.24 MB / 0.5338 GB, free: 2.551 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3887/1.054, allocations: 65.26 MB / 0.5975 GB, free: 94.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02839/1.082, allocations: 57.25 MB / 0.6534 GB, free: 36.74 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005611/1.088, allocations: 4.203 MB / 0.6575 GB, free: 33.19 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/1.103, allocations: 11.69 MB / 0.6689 GB, free: 21.49 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/1.103, allocations: 73.34 kB / 0.669 GB, free: 21.41 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 4.358e-06/1.103, allocations: 4 kB / 0.669 GB, free: 21.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.02892/1.132, allocations: 17.88 MB / 0.6865 GB, free: 3.418 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/1.132, allocations: 94.58 kB / 0.6865 GB, free: 3.312 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007189/1.14, allocations: 5.689 MB / 0.6921 GB, free: 13.65 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003219/1.14, allocations: 89.7 kB / 0.6922 GB, free: 13.55 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003881/1.144, allocations: 6.053 MB / 0.6981 GB, free: 7.473 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001196/1.145, allocations: 1.419 MB / 0.6995 GB, free: 6.066 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007792/1.146, allocations: 0.6088 MB / 0.7001 GB, free: 5.453 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.753e-05/1.146, allocations: 309.1 kB / 0.7004 GB, free: 5.148 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004739/1.151, allocations: 3.142 MB / 0.7034 GB, free: 2.004 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1792/1.33, allocations: 6.89 MB / 0.7102 GB, free: 141.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01348/1.343, allocations: 10.82 MB / 0.7207 GB, free: 134.7 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003231/1.344, allocations: 36.5 kB / 0.7208 GB, free: 134.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.02094/1.365, allocations: 11.03 MB / 0.7315 GB, free: 130.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001611/1.365, allocations: 63.12 kB / 0.7316 GB, free: 130.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002235/1.365, allocations: 130.2 kB / 0.7317 GB, free: 130.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/1.368, allocations: 0.977 MB / 0.7327 GB, free: 130.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006568/1.374, allocations: 1.855 MB / 0.7345 GB, free: 130.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/1.385, allocations: 9.554 MB / 0.7438 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006826/1.392, allocations: 452.1 kB / 0.7443 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0021/1.394, allocations: 432.1 kB / 0.7447 GB, free: 123.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.008687/1.402, allocations: 4.507 MB / 0.7491 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001312/1.404, allocations: 0.574 MB / 0.7496 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/1.414, allocations: 6.713 MB / 0.7562 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.506e-05/1.414, allocations: 40 kB / 0.7562 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/1.415, allocations: 8 kB / 0.7562 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.772e-05/1.415, allocations: 22.31 kB / 0.7563 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02533/1.44, allocations: 16.5 MB / 0.7724 GB, free: 104.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/1.44, allocations: 4 kB / 0.7724 GB, free: 104.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00305/1.443, allocations: 0.7752 MB / 0.7731 GB, free: 104.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/1.445, allocations: 0.7973 MB / 0.7739 GB, free: 103.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003335/1.445, allocations: 92.47 kB / 0.774 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008149/1.454, allocations: 8.671 MB / 0.7825 GB, free: 95.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.454, allocations: 4 kB / 0.7825 GB, free: 95.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01277/1.466, allocations: 9.83 MB / 0.7921 GB, free: 85.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00301/1.469, allocations: 1.142 MB / 0.7932 GB, free: 84.53 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008761/1.47, allocations: 72 kB / 0.7933 GB, free: 84.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002452/1.473, allocations: 231.7 kB / 0.7935 GB, free: 84.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005289/1.473, allocations: 278.8 kB / 0.7937 GB, free: 83.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002185/1.474, allocations: 123.9 kB / 0.7939 GB, free: 83.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005315/1.479, allocations: 3.742 MB / 0.7975 GB, free: 80.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.479, allocations: 0 / 0.7975 GB, free: 80.13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00785/1.487, allocations: 2.046 MB / 0.7995 GB, free: 78.09 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.0005991/1.487, allocations: 253.3 kB / 0.7998 GB, free: 77.83 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01123/1.499, allocations: 8.227 MB / 0.8078 GB, free: 69.54 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/1.499, allocations: 1.812 kB / 0.8078 GB, free: 69.54 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004753/1.503, allocations: 3.626 MB / 0.8113 GB, free: 65.84 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00882/1.512, allocations: 1.328 MB / 0.8126 GB, free: 64.53 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03743/1.55, allocations: 27.01 MB / 0.839 GB, free: 37.48 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006512/1.556, allocations: 7.692 MB / 0.8465 GB, free: 29.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006406/1.563, allocations: 2.399 MB / 0.8489 GB, free: 27.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/1.564, allocations: 459.3 kB / 0.8493 GB, free: 26.89 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/1.564, allocations: 0 / 0.8493 GB, free: 26.89 MB / 462.1 MB Notification: Performance of Templates: time 0.3179/1.882, allocations: 78.49 MB / 0.9259 GB, free: 103.3 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)