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.001298/0.001298, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.4 MB, free: 4.594 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.001306/0.001307, allocations: 51.94 kB / 278.7 MB, free: 12.31 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.204, allocations: 46.62 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04061/0.2447, allocations: 41.75 MB / 367.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.2672, allocations: 11.09 MB / 378.2 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01013/0.2773, allocations: 267.1 kB / 378.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02006/0.2975, allocations: 8.795 MB / 387.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01338/0.3109, allocations: 3.791 MB / 391 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007778/0.3187, allocations: 2.448 MB / 393.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01719/0.3359, allocations: 13.79 MB / 407.3 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04044/0.3763, allocations: 25.88 MB / 433.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01089/0.3873, allocations: 7.18 MB / 440.3 MB, free: 444 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01231/0.3996, allocations: 8.261 MB / 448.6 MB, free: 8.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005902/0.4055, allocations: 2.031 MB / 450.6 MB, free: 6.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007323/0.4129, allocations: 2.429 MB / 453 MB, free: 3.684 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.304/0.717, allocations: 4.24 MB / 457.3 MB, free: 39.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01681/0.7338, allocations: 8.045 MB / 465.3 MB, free: 39.34 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02249/0.7564, allocations: 26.81 MB / 492.1 MB, free: 32.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.7564, allocations: 0 / 492.1 MB, free: 32.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.7564, allocations: 0 / 492.1 MB, free: 32.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006182/0.757, allocations: 1.375 kB / 492.1 MB, free: 32.24 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.04143/0.7985, allocations: 16.06 MB / 0.4963 GB, free: 22.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.7985, allocations: 15 kB / 0.4963 GB, free: 22.4 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04675/0.8453, allocations: 9.181 MB / 0.5053 GB, free: 18.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01458/0.8599, allocations: 7.678 MB / 0.5128 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006153/0.8605, allocations: 0.976 MB / 0.5137 GB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004689/0.8652, allocations: 1.272 MB / 0.515 GB, free: 8.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04453/0.9098, allocations: 20.51 MB / 0.535 GB, free: 3.941 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003511/0.9101, allocations: 31.36 kB / 0.535 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002565/0.9127, allocations: 0.5275 MB / 0.5355 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006916/0.9134, allocations: 0.7455 MB / 0.5363 GB, free: 2.656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0384/0.9518, allocations: 19.24 MB / 0.555 GB, free: 15.42 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2772/1.229, allocations: 65.05 MB / 0.6186 GB, free: 151.1 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0334/1.263, allocations: 57.28 MB / 0.6745 GB, free: 98.62 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006222/1.269, allocations: 4.191 MB / 0.6786 GB, free: 98.55 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01976/1.289, allocations: 11.68 MB / 0.69 GB, free: 97.46 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.921e-05/1.289, allocations: 68.19 kB / 0.6901 GB, free: 97.41 MB / 478.1 MB Notification: Performance of pre-optimization done (n=361): time 5.871e-06/1.289, allocations: 0 / 0.6901 GB, free: 97.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=403): time 0.03333/1.322, allocations: 17.87 MB / 0.7075 GB, free: 90.75 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/1.322, allocations: 93.61 kB / 0.7076 GB, free: 90.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009072/1.331, allocations: 5.689 MB / 0.7132 GB, free: 88.61 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005138/1.332, allocations: 89.45 kB / 0.7132 GB, free: 88.53 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002807/1.334, allocations: 6.057 MB / 0.7192 GB, free: 83.96 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/1.336, allocations: 1.42 MB / 0.7205 GB, free: 82.88 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002868/1.339, allocations: 1.547 MB / 0.7221 GB, free: 82.12 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.564e-05/1.339, allocations: 301.1 kB / 0.7223 GB, free: 81.83 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004238/1.343, allocations: 3.142 MB / 0.7254 GB, free: 79.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005424/1.348, allocations: 6.889 MB / 0.7321 GB, free: 71.27 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/1.359, allocations: 10.81 MB / 0.7427 GB, free: 58.62 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.151e-05/1.359, allocations: 36 kB / 0.7427 GB, free: 58.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=1007) (initialization): time 0.01612/1.375, allocations: 11.03 MB / 0.7535 GB, free: 47.49 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.243e-05/1.375, allocations: 56 kB / 0.7536 GB, free: 47.43 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001615/1.375, allocations: 128 kB / 0.7537 GB, free: 47.31 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002385/1.378, allocations: 0.9923 MB / 0.7547 GB, free: 46.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005885/1.384, allocations: 1.856 MB / 0.7565 GB, free: 44.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009991/1.394, allocations: 10.25 MB / 0.7665 GB, free: 33.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006403/1.4, allocations: 459.1 kB / 0.7669 GB, free: 33.32 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001356/1.401, allocations: 428 kB / 0.7673 GB, free: 32.91 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.00822/1.41, allocations: 4.508 MB / 0.7717 GB, free: 28.38 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001569/1.411, allocations: 0.5825 MB / 0.7723 GB, free: 27.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/1.423, allocations: 6.705 MB / 0.7788 GB, free: 21.04 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.318e-05/1.423, allocations: 40 kB / 0.7789 GB, free: 21 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.255e-05/1.423, allocations: 8 kB / 0.7789 GB, free: 21 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.176e-05/1.423, allocations: 23.91 kB / 0.7789 GB, free: 20.97 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02943/1.453, allocations: 16.5 MB / 0.795 GB, free: 4.434 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.549e-05/1.453, allocations: 4 kB / 0.795 GB, free: 4.43 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003141/1.456, allocations: 0.7762 MB / 0.7958 GB, free: 3.652 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002067/1.458, allocations: 0.8042 MB / 0.7966 GB, free: 2.832 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003061/1.458, allocations: 91.98 kB / 0.7967 GB, free: 2.742 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1734/1.632, allocations: 9.339 MB / 0.8058 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/1.632, allocations: 6 kB / 0.8058 GB, free: 148.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01543/1.647, allocations: 9.824 MB / 0.8154 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002742/1.65, allocations: 1.114 MB / 0.8165 GB, free: 148 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001402/1.651, allocations: 81.06 kB / 0.8165 GB, free: 148 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00331/1.655, allocations: 228.9 kB / 0.8168 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006967/1.655, allocations: 286 kB / 0.817 GB, free: 147.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002765/1.656, allocations: 113.6 kB / 0.8171 GB, free: 147.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005741/1.661, allocations: 3.746 MB / 0.8208 GB, free: 146.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.661, allocations: 0 / 0.8208 GB, free: 146.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007024/1.668, allocations: 2.048 MB / 0.8228 GB, free: 146.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.0005176/1.669, allocations: 256.5 kB / 0.823 GB, free: 146.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02789/1.697, allocations: 13.87 MB / 0.8366 GB, free: 142.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/1.697, allocations: 3.281 kB / 0.8366 GB, free: 142.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004407/1.701, allocations: 3.623 MB / 0.8401 GB, free: 141 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005848/1.707, allocations: 1.408 MB / 0.8415 GB, free: 139.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03066/1.738, allocations: 21.53 MB / 0.8625 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006528/1.744, allocations: 7.693 MB / 0.87 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006305/1.751, allocations: 2.397 MB / 0.8724 GB, free: 112.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/1.752, allocations: 454.7 kB / 0.8728 GB, free: 112.3 MB / 478.1 MB Notification: Performance of SimCode: time 7.81e-07/1.752, allocations: 0 / 0.8728 GB, free: 112.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1196/1.872, allocations: 82.35 MB / 0.9532 GB, free: 32 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)