Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001606/0.001606, 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.001845/0.001845, allocations: 195.4 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.353/1.353, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001216/0.001216, allocations: 55.94 kB / 278.7 MB, free: 12.31 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2027/0.2039, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03998/0.2439, allocations: 40.01 MB / 365.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02418/0.2682, allocations: 10.55 MB / 375.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007495/0.2757, allocations: 259.1 kB / 376.2 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02013/0.2959, allocations: 8.539 MB / 384.7 MB, free: 8.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01281/0.3087, allocations: 3.644 MB / 388.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007801/0.3166, allocations: 2.381 MB / 390.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01854/0.3351, allocations: 13.33 MB / 404 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0457/0.3809, allocations: 25.45 MB / 429.5 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01115/0.3921, allocations: 7.009 MB / 436.5 MB, free: 4.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01338/0.4055, allocations: 8.074 MB / 444.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005563/0.4111, allocations: 1.992 MB / 446.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0079/0.419, allocations: 2.382 MB / 449 MB, free: 7.777 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006768/0.4258, allocations: 4.165 MB / 453.1 MB, free: 3.602 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3497/0.7756, allocations: 7.826 MB / 460.9 MB, free: 39.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0277/0.8033, allocations: 26.24 MB / 487.2 MB, free: 34.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.8033, allocations: 3.406 kB / 487.2 MB, free: 34.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.8034, allocations: 0 / 487.2 MB, free: 34.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009084/0.8043, allocations: 1.938 kB / 487.2 MB, free: 34.14 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.04653/0.8508, allocations: 15.63 MB / 0.491 GB, free: 25.86 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.8509, allocations: 7.625 kB / 0.491 GB, free: 25.86 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04778/0.8986, allocations: 9.098 MB / 0.4999 GB, free: 21.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01552/0.9142, allocations: 7.482 MB / 0.5072 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008501/0.9151, allocations: 0.9434 MB / 0.5082 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005537/0.9206, allocations: 1.25 MB / 0.5094 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05443/0.9751, allocations: 20.15 MB / 0.5291 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006161/0.9757, allocations: 19.81 kB / 0.5291 GB, free: 8.742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004718/0.9805, allocations: 0.5159 MB / 0.5296 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008136/0.9813, allocations: 0.7294 MB / 0.5303 GB, free: 7.512 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0454/1.027, allocations: 18.98 MB / 0.5488 GB, free: 4.535 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1252/1.152, allocations: 63.4 MB / 0.6107 GB, free: 4.555 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2226/1.375, allocations: 56.97 MB / 0.6664 GB, free: 114.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008219/1.383, allocations: 4.112 MB / 0.6704 GB, free: 114.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02435/1.407, allocations: 11.39 MB / 0.6815 GB, free: 111.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.864e-05/1.407, allocations: 73.06 kB / 0.6816 GB, free: 111.3 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 6.102e-06/1.407, allocations: 0 / 0.6816 GB, free: 111.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.04052/1.448, allocations: 18.14 MB / 0.6993 GB, free: 103.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/1.448, allocations: 92.72 kB / 0.6994 GB, free: 103.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01301/1.461, allocations: 5.459 MB / 0.7047 GB, free: 99.63 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009998/1.462, allocations: 85.7 kB / 0.7048 GB, free: 99.54 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004062/1.466, allocations: 5.882 MB / 0.7105 GB, free: 94.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002021/1.468, allocations: 1.378 MB / 0.7119 GB, free: 93.09 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004345/1.473, allocations: 1.51 MB / 0.7134 GB, free: 91.71 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.565e-05/1.473, allocations: 301.1 kB / 0.7137 GB, free: 91.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00484/1.478, allocations: 3.081 MB / 0.7167 GB, free: 88.81 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007373/1.485, allocations: 6.758 MB / 0.7233 GB, free: 80.89 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/1.497, allocations: 10.59 MB / 0.7336 GB, free: 68.69 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001285/1.497, allocations: 36 kB / 0.7336 GB, free: 68.65 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02287/1.52, allocations: 10.79 MB / 0.7442 GB, free: 57.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001672/1.52, allocations: 60.03 kB / 0.7442 GB, free: 57.74 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002379/1.521, allocations: 128 kB / 0.7444 GB, free: 57.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002724/1.523, allocations: 0.9807 MB / 0.7453 GB, free: 56.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00689/1.53, allocations: 1.813 MB / 0.7471 GB, free: 54.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/1.541, allocations: 10.25 MB / 0.7571 GB, free: 44.13 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006754/1.548, allocations: 450.7 kB / 0.7575 GB, free: 43.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001543/1.549, allocations: 416 kB / 0.7579 GB, free: 43.29 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.009328/1.559, allocations: 4.461 MB / 0.7623 GB, free: 38.81 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001815/1.561, allocations: 0.5402 MB / 0.7628 GB, free: 38.27 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01273/1.573, allocations: 6.523 MB / 0.7692 GB, free: 31.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.747e-05/1.573, allocations: 36 kB / 0.7692 GB, free: 31.66 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.824e-05/1.573, allocations: 12 kB / 0.7692 GB, free: 31.65 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-05/1.573, allocations: 19.92 kB / 0.7692 GB, free: 31.63 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03571/1.609, allocations: 15.97 MB / 0.7848 GB, free: 15.63 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-05/1.609, allocations: 4 kB / 0.7848 GB, free: 15.62 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003276/1.613, allocations: 0.7532 MB / 0.7856 GB, free: 14.87 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002153/1.615, allocations: 0.8001 MB / 0.7864 GB, free: 14.05 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005079/1.615, allocations: 83.97 kB / 0.7864 GB, free: 13.97 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00886/1.624, allocations: 9.361 MB / 0.7956 GB, free: 4.195 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.624, allocations: 0 / 0.7956 GB, free: 4.195 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2104/1.835, allocations: 9.523 MB / 0.8049 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003163/1.838, allocations: 1.072 MB / 0.8059 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.839, allocations: 72.38 kB / 0.806 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002762/1.842, allocations: 226.2 kB / 0.8062 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005868/1.842, allocations: 258.6 kB / 0.8064 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002593/1.843, allocations: 115.5 kB / 0.8066 GB, free: 152.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007317/1.85, allocations: 3.599 MB / 0.8101 GB, free: 152.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.4e-07/1.85, allocations: 0 / 0.8101 GB, free: 152.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009006/1.859, allocations: 1.992 MB / 0.812 GB, free: 152.4 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.0009791/1.86, allocations: 253.3 kB / 0.8123 GB, free: 152.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02686/1.887, allocations: 13.52 MB / 0.8255 GB, free: 150 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.887, allocations: 0 / 0.8255 GB, free: 150 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005166/1.892, allocations: 3.539 MB / 0.8289 GB, free: 148.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006049/1.898, allocations: 1.305 MB / 0.8302 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03337/1.932, allocations: 21 MB / 0.8507 GB, free: 131.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007248/1.939, allocations: 7.607 MB / 0.8581 GB, free: 125.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006375/1.945, allocations: 2.351 MB / 0.8604 GB, free: 124.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/1.946, allocations: 432.7 kB / 0.8608 GB, free: 123.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/1.946, allocations: 0 / 0.8608 GB, free: 123.9 MB / 478.1 MB Notification: Performance of Templates: time 0.12/2.067, allocations: 78.4 MB / 0.9374 GB, free: 48.89 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)