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.001152/0.001152, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001526/0.001526, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.4 MB / 222.1 MB, free: 5.352 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.0004134/0.0004135, allocations: 12 kB / 278.9 MB, free: 12.64 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1933/0.1937, allocations: 47.58 MB / 326.5 MB, free: 1.445 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03797/0.2317, allocations: 36.49 MB / 363 MB, free: 14.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02419/0.256, allocations: 10.29 MB / 373.3 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008452/0.2645, allocations: 255.1 kB / 373.5 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007338/0.2719, allocations: 1.778 MB / 375.3 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01246/0.2844, allocations: 3.145 MB / 378.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006864/0.2912, allocations: 1.598 MB / 380.1 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0209/0.3121, allocations: 14.78 MB / 394.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04326/0.3555, allocations: 20.28 MB / 415.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01066/0.3662, allocations: 5.135 MB / 420.3 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01148/0.3777, allocations: 6.128 MB / 426.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003875/0.3816, allocations: 0.793 MB / 427.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006272/0.3879, allocations: 1.152 MB / 428.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004977/0.3929, allocations: 2.682 MB / 431 MB, free: 10.58 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006011/0.3989, allocations: 2.675 MB / 433.7 MB, free: 7.895 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0255/0.4245, allocations: 22.57 MB / 456.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4245, allocations: 0 / 456.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4245, allocations: 0 / 456.3 MB, free: 1.262 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008525/0.4254, allocations: 0 / 456.3 MB, free: 1.262 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.344/0.7694, allocations: 13.34 MB / 469.6 MB, free: 93.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.7695, allocations: 17.86 kB / 469.6 MB, free: 93.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04694/0.8164, allocations: 9.208 MB / 478.8 MB, free: 87.14 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01461/0.8311, allocations: 7.547 MB / 486.4 MB, free: 79.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008964/0.832, allocations: 0.9747 MB / 487.3 MB, free: 78.62 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005682/0.8377, allocations: 1.284 MB / 488.6 MB, free: 77.36 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04459/0.8823, allocations: 20.42 MB / 0.4971 GB, free: 56.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005457/0.8829, allocations: 23.8 kB / 0.4971 GB, free: 56.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003613/0.8865, allocations: 0.5254 MB / 0.4977 GB, free: 56.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006722/0.8872, allocations: 0.7494 MB / 0.4984 GB, free: 55.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03752/0.9247, allocations: 19.14 MB / 0.5171 GB, free: 36.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1097/1.034, allocations: 65.2 MB / 0.5807 GB, free: 1.852 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2172/1.252, allocations: 57.22 MB / 0.6366 GB, free: 109.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006881/1.259, allocations: 4.189 MB / 0.6407 GB, free: 109.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02007/1.279, allocations: 11.68 MB / 0.6521 GB, free: 104.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.821e-05/1.279, allocations: 68.94 kB / 0.6522 GB, free: 104.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 5.841e-06/1.279, allocations: 0 / 0.6522 GB, free: 104.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.03671/1.316, allocations: 18.78 MB / 0.6705 GB, free: 96.39 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.614e-05/1.316, allocations: 96.11 kB / 0.6706 GB, free: 96.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008245/1.324, allocations: 5.656 MB / 0.6762 GB, free: 93.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003996/1.324, allocations: 89.7 kB / 0.6762 GB, free: 93.49 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002529/1.327, allocations: 6.044 MB / 0.6821 GB, free: 88.13 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009551/1.328, allocations: 1.428 MB / 0.6835 GB, free: 86.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004844/1.328, allocations: 156 kB / 0.6837 GB, free: 86.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003582/1.329, allocations: 0.6215 MB / 0.6843 GB, free: 86.17 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004166/1.333, allocations: 3.107 MB / 0.6873 GB, free: 83.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005396/1.338, allocations: 6.865 MB / 0.694 GB, free: 74.83 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005908/1.344, allocations: 4.656 MB / 0.6986 GB, free: 70.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.344, allocations: 36 kB / 0.6986 GB, free: 70.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01613/1.361, allocations: 10.95 MB / 0.7093 GB, free: 59.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/1.361, allocations: 63.95 kB / 0.7094 GB, free: 59.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/1.361, allocations: 128 kB / 0.7095 GB, free: 58.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002279/1.363, allocations: 0.9886 MB / 0.7105 GB, free: 57.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005928/1.369, allocations: 1.86 MB / 0.7123 GB, free: 56.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009313/1.378, allocations: 9.531 MB / 0.7216 GB, free: 46.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005818/1.384, allocations: 451.3 kB / 0.722 GB, free: 45.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001158/1.385, allocations: 428 kB / 0.7224 GB, free: 45.25 MB / 446.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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007979/1.393, allocations: 4.519 MB / 0.7268 GB, free: 40.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001732/1.395, allocations: 0.5672 MB / 0.7274 GB, free: 40.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01192/1.407, allocations: 6.704 MB / 0.7339 GB, free: 33.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.761e-05/1.407, allocations: 44 kB / 0.734 GB, free: 33.36 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.741e-05/1.407, allocations: 8 kB / 0.734 GB, free: 33.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.414e-05/1.407, allocations: 23.92 kB / 0.734 GB, free: 33.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02747/1.435, allocations: 16.47 MB / 0.7501 GB, free: 16.81 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.529e-05/1.435, allocations: 4 kB / 0.7501 GB, free: 16.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003195/1.438, allocations: 0.7806 MB / 0.7509 GB, free: 16.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001942/1.44, allocations: 0.7962 MB / 0.7516 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004434/1.44, allocations: 95.92 kB / 0.7517 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008233/1.449, allocations: 8.647 MB / 0.7602 GB, free: 6.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.449, allocations: 4 kB / 0.7602 GB, free: 6.066 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/1.465, allocations: 9.802 MB / 0.7697 GB, free: 12.15 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003163/1.468, allocations: 1.142 MB / 0.7709 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001599/1.469, allocations: 79.95 kB / 0.7709 GB, free: 10.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003302/1.473, allocations: 227.8 kB / 0.7711 GB, free: 10.68 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007691/1.474, allocations: 282.8 kB / 0.7714 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004592/1.474, allocations: 120 kB / 0.7715 GB, free: 10.29 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007285/1.481, allocations: 3.699 MB / 0.7751 GB, free: 6.617 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.481, allocations: 0 / 0.7751 GB, free: 6.617 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.009634/1.491, allocations: 2.042 MB / 0.7771 GB, free: 4.578 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 (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001133/1.492, allocations: 253 kB / 0.7774 GB, free: 4.328 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1882/1.68, allocations: 8.176 MB / 0.7854 GB, free: 149.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/1.68, allocations: 9.109 kB / 0.7854 GB, free: 149.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005146/1.686, allocations: 3.61 MB / 0.7889 GB, free: 148.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006568/1.692, allocations: 1.355 MB / 0.7902 GB, free: 148.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03776/1.73, allocations: 25.76 MB / 0.8154 GB, free: 134.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008112/1.738, allocations: 7.697 MB / 0.8229 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006709/1.745, allocations: 2.4 MB / 0.8252 GB, free: 127.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/1.746, allocations: 450.5 kB / 0.8257 GB, free: 126.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.533e-06/1.746, allocations: 11.39 kB / 0.8257 GB, free: 126.9 MB / 462.1 MB Notification: Performance of Templates: time 0.1108/1.857, allocations: 76.75 MB / 0.9006 GB, free: 50.97 MB / 462.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)