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.SMR_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.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001436/0.001436, allocations: 189.2 kB / 16.14 MB, free: 6.707 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.292/1.292, allocations: 205.1 MB / 222 MB, free: 4.719 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.001079/0.001079, allocations: 51.94 kB / 278.1 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.22, allocations: 46.62 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03785/0.2579, allocations: 39.28 MB / 364 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02357/0.2815, allocations: 10.44 MB / 374.4 MB, free: 2.242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009397/0.2909, allocations: 251.1 kB / 374.7 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0184/0.3094, allocations: 8 MB / 382.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01143/0.3208, allocations: 3.317 MB / 386 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006802/0.3277, allocations: 2.215 MB / 388.2 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01597/0.3436, allocations: 13.66 MB / 401.9 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03064/0.3743, allocations: 20.6 MB / 422.5 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009128/0.3835, allocations: 6.067 MB / 428.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01241/0.3959, allocations: 7.676 MB / 436.2 MB, free: 4.156 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003716/0.3997, allocations: 1.312 MB / 437.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005847/0.4055, allocations: 1.703 MB / 439.2 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004217/0.4098, allocations: 3.451 MB / 442.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01165/0.4215, allocations: 7.105 MB / 449.8 MB, free: 6.547 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3294/0.7509, allocations: 25.77 MB / 475.6 MB, free: 43.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.7509, allocations: 5.125 kB / 475.6 MB, free: 43.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.7509, allocations: 0 / 475.6 MB, free: 43.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009349/0.7519, allocations: 0 / 475.6 MB, free: 43.91 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04985/0.8017, allocations: 15.62 MB / 491.2 MB, free: 37.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.8018, allocations: 10.91 kB / 491.2 MB, free: 37.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04683/0.8486, allocations: 9.096 MB / 0.4886 GB, free: 33.66 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01445/0.8631, allocations: 7.447 MB / 0.4958 GB, free: 29.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001101/0.8643, allocations: 0.9535 MB / 0.4968 GB, free: 29.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005156/0.8694, allocations: 1.25 MB / 0.498 GB, free: 27.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04873/0.9182, allocations: 20.15 MB / 0.5177 GB, free: 7.613 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006316/0.9189, allocations: 23.8 kB / 0.5177 GB, free: 7.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004872/0.9237, allocations: 0.5155 MB / 0.5182 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006521/0.9244, allocations: 0.7333 MB / 0.5189 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04382/0.9682, allocations: 18.97 MB / 0.5374 GB, free: 3.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1225/1.091, allocations: 63.41 MB / 0.5994 GB, free: 3.41 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.201/1.292, allocations: 56.97 MB / 0.655 GB, free: 125.4 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006676/1.299, allocations: 4.12 MB / 0.659 GB, free: 125.3 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/1.315, allocations: 11.39 MB / 0.6701 GB, free: 121.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/1.315, allocations: 68.91 kB / 0.6702 GB, free: 121.7 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 4.809e-06/1.315, allocations: 1.562 kB / 0.6702 GB, free: 121.7 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.03298/1.348, allocations: 18.14 MB / 0.6879 GB, free: 114.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.259e-05/1.348, allocations: 90.25 kB / 0.688 GB, free: 114.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009189/1.357, allocations: 5.459 MB / 0.6933 GB, free: 112.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004933/1.358, allocations: 88.83 kB / 0.6934 GB, free: 112 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002484/1.36, allocations: 5.884 MB / 0.6992 GB, free: 107.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001081/1.362, allocations: 1.381 MB / 0.7005 GB, free: 106.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001902/1.363, allocations: 1.506 MB / 0.702 GB, free: 104.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.256e-05/1.363, allocations: 305.1 kB / 0.7023 GB, free: 104.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003735/1.367, allocations: 3.082 MB / 0.7053 GB, free: 101.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005133/1.372, allocations: 6.753 MB / 0.7119 GB, free: 93.96 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0095/1.382, allocations: 10.59 MB / 0.7222 GB, free: 82.32 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.368e-05/1.382, allocations: 36 kB / 0.7223 GB, free: 82.28 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01416/1.396, allocations: 10.79 MB / 0.7328 GB, free: 72.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.806e-05/1.396, allocations: 56 kB / 0.7328 GB, free: 72.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001144/1.396, allocations: 130.3 kB / 0.733 GB, free: 71.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/1.399, allocations: 0.9729 MB / 0.7339 GB, free: 70.94 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005259/1.404, allocations: 1.817 MB / 0.7357 GB, free: 69.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008981/1.413, allocations: 9.545 MB / 0.745 GB, free: 59.19 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005363/1.418, allocations: 455 kB / 0.7455 GB, free: 58.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008407/1.419, allocations: 416 kB / 0.7458 GB, free: 58.34 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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.006752/1.426, allocations: 4.461 MB / 0.7502 GB, free: 53.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001217/1.427, allocations: 0.5402 MB / 0.7507 GB, free: 53.32 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009977/1.437, allocations: 6.522 MB / 0.7571 GB, free: 46.75 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.92e-05/1.437, allocations: 40 kB / 0.7571 GB, free: 46.71 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.202e-05/1.437, allocations: 11.94 kB / 0.7572 GB, free: 46.7 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.251e-05/1.437, allocations: 27.92 kB / 0.7572 GB, free: 46.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02862/1.466, allocations: 15.96 MB / 0.7728 GB, free: 30.68 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/1.466, allocations: 4.375 kB / 0.7728 GB, free: 30.67 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003008/1.469, allocations: 0.7528 MB / 0.7735 GB, free: 29.92 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/1.471, allocations: 0.7885 MB / 0.7743 GB, free: 29.11 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002519/1.471, allocations: 83.92 kB / 0.7744 GB, free: 29.03 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007864/1.479, allocations: 8.662 MB / 0.7828 GB, free: 19.97 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.479, allocations: 4 kB / 0.7828 GB, free: 19.97 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01166/1.491, allocations: 9.531 MB / 0.7921 GB, free: 10.33 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00233/1.493, allocations: 1.068 MB / 0.7932 GB, free: 9.234 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001206/1.494, allocations: 71.91 kB / 0.7932 GB, free: 9.164 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002636/1.497, allocations: 227.7 kB / 0.7935 GB, free: 8.941 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000499/1.497, allocations: 262.7 kB / 0.7937 GB, free: 8.684 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/1.498, allocations: 112 kB / 0.7938 GB, free: 8.574 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005495/1.503, allocations: 3.603 MB / 0.7973 GB, free: 4.996 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.503, allocations: 0 / 0.7973 GB, free: 4.996 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006592/1.51, allocations: 1.983 MB / 0.7993 GB, free: 3.016 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.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 (368): * Single equations (assignments): 363 * 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.0004957/1.51, allocations: 261.6 kB / 0.7995 GB, free: 2.762 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1805/1.691, allocations: 8.041 MB / 0.8074 GB, free: 162.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.115e-05/1.691, allocations: 6.594 kB / 0.8074 GB, free: 162.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008126/1.699, allocations: 3.534 MB / 0.8108 GB, free: 162.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0111/1.71, allocations: 1.233 MB / 0.812 GB, free: 162.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06068/1.771, allocations: 26.23 MB / 0.8376 GB, free: 148.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01644/1.787, allocations: 7.588 MB / 0.8451 GB, free: 143.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008456/1.796, allocations: 2.364 MB / 0.8474 GB, free: 142.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001637/1.797, allocations: 434.5 kB / 0.8478 GB, free: 141.7 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/1.797, allocations: 1.531 kB / 0.8478 GB, free: 141.7 MB / 478.1 MB Notification: Performance of Templates: time 0.1162/1.914, allocations: 75.7 MB / 0.9217 GB, free: 68.78 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)