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.001645/0.001645, allocations: 108 kB / 15.6 MB, free: 132 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.001871/0.001871, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.338/1.338, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.001203/0.001203, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1916/0.1928, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03848/0.2313, allocations: 40 MB / 365.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02279/0.2542, allocations: 10.57 MB / 375.9 MB, free: 1.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007044/0.2613, allocations: 259.1 kB / 376.2 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01892/0.2803, allocations: 8.539 MB / 384.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01177/0.292, allocations: 3.636 MB / 388.3 MB, free: 4.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007364/0.2994, allocations: 2.381 MB / 390.7 MB, free: 2.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01687/0.3163, allocations: 13.33 MB / 404.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03894/0.3553, allocations: 25.44 MB / 429.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009938/0.3653, allocations: 7.009 MB / 436.5 MB, free: 4.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01141/0.3767, allocations: 8.078 MB / 444.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00568/0.3824, allocations: 1.992 MB / 446.6 MB, free: 10.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007315/0.3897, allocations: 2.382 MB / 449 MB, free: 7.766 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006233/0.396, allocations: 4.161 MB / 453.1 MB, free: 3.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2951/0.6911, allocations: 7.824 MB / 460.9 MB, free: 39.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02793/0.7191, allocations: 26.25 MB / 487.2 MB, free: 34.01 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.223e-06/0.7191, allocations: 0 / 487.2 MB, free: 34.01 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.7191, allocations: 0 / 487.2 MB, free: 34.01 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008671/0.72, allocations: 0 / 487.2 MB, free: 34.01 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.04505/0.7651, allocations: 15.63 MB / 0.491 GB, free: 25.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.7651, allocations: 11.22 kB / 0.491 GB, free: 25.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06014/0.8253, allocations: 9.097 MB / 0.4999 GB, free: 21.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/0.8397, allocations: 7.478 MB / 0.5072 GB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005938/0.8403, allocations: 0.9537 MB / 0.5082 GB, free: 14.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004071/0.8444, allocations: 1.241 MB / 0.5094 GB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04192/0.8863, allocations: 20.15 MB / 0.5291 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003561/0.8867, allocations: 19.81 kB / 0.5291 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003257/0.89, allocations: 0.5161 MB / 0.5296 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007421/0.8907, allocations: 0.7294 MB / 0.5303 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0397/0.9304, allocations: 18.98 MB / 0.5488 GB, free: 4.469 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1139/1.044, allocations: 63.41 MB / 0.6108 GB, free: 4.488 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2316/1.276, allocations: 56.96 MB / 0.6664 GB, free: 114.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007696/1.284, allocations: 4.113 MB / 0.6704 GB, free: 114.5 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01735/1.301, allocations: 11.39 MB / 0.6815 GB, free: 111.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/1.301, allocations: 68.91 kB / 0.6816 GB, free: 111.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 4.989e-06/1.301, allocations: 0 / 0.6816 GB, free: 111.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.03558/1.337, allocations: 18.14 MB / 0.6993 GB, free: 103.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/1.337, allocations: 93.31 kB / 0.6994 GB, free: 103.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007888/1.345, allocations: 5.46 MB / 0.7047 GB, free: 99.57 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008252/1.346, allocations: 85.7 kB / 0.7048 GB, free: 99.48 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/1.349, allocations: 5.886 MB / 0.7105 GB, free: 94.26 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001742/1.35, allocations: 1.373 MB / 0.7119 GB, free: 93.03 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002039/1.352, allocations: 1.509 MB / 0.7134 GB, free: 91.64 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.684e-05/1.352, allocations: 301.1 kB / 0.7136 GB, free: 91.35 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004023/1.356, allocations: 3.086 MB / 0.7167 GB, free: 88.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005451/1.362, allocations: 6.757 MB / 0.7233 GB, free: 80.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009625/1.372, allocations: 10.59 MB / 0.7336 GB, free: 68.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-05/1.372, allocations: 38.81 kB / 0.7336 GB, free: 68.58 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0157/1.387, allocations: 10.79 MB / 0.7442 GB, free: 57.72 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.508e-05/1.387, allocations: 64.03 kB / 0.7442 GB, free: 57.66 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000155/1.388, allocations: 128 kB / 0.7444 GB, free: 57.54 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002277/1.39, allocations: 0.9768 MB / 0.7453 GB, free: 56.54 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005717/1.396, allocations: 1.813 MB / 0.7471 GB, free: 54.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009248/1.405, allocations: 10.25 MB / 0.7571 GB, free: 44.05 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006174/1.411, allocations: 443.2 kB / 0.7575 GB, free: 43.61 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008576/1.412, allocations: 421.2 kB / 0.7579 GB, free: 43.2 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.006858/1.419, allocations: 4.457 MB / 0.7623 GB, free: 38.73 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/1.42, allocations: 0.5441 MB / 0.7628 GB, free: 38.18 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009338/1.429, allocations: 6.523 MB / 0.7692 GB, free: 31.61 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.457e-05/1.429, allocations: 40 kB / 0.7692 GB, free: 31.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/1.429, allocations: 8 kB / 0.7692 GB, free: 31.56 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.183e-05/1.429, allocations: 23.92 kB / 0.7692 GB, free: 31.54 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02432/1.454, allocations: 15.96 MB / 0.7848 GB, free: 15.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/1.454, allocations: 7.984 kB / 0.7848 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003057/1.457, allocations: 0.7532 MB / 0.7856 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002065/1.459, allocations: 0.7962 MB / 0.7864 GB, free: 13.97 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003307/1.459, allocations: 83.97 kB / 0.7864 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008534/1.468, allocations: 9.357 MB / 0.7956 GB, free: 4.117 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.468, allocations: 4 kB / 0.7956 GB, free: 4.113 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2385/1.706, allocations: 9.521 MB / 0.8049 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003417/1.71, allocations: 1.077 MB / 0.8059 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001117/1.711, allocations: 69.97 kB / 0.806 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002818/1.714, allocations: 223.6 kB / 0.8062 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000667/1.714, allocations: 261 kB / 0.8065 GB, free: 152.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002742/1.715, allocations: 119.8 kB / 0.8066 GB, free: 152.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006165/1.721, allocations: 3.599 MB / 0.8101 GB, free: 152.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.721, allocations: 1.422 kB / 0.8101 GB, free: 152.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008945/1.73, allocations: 1.984 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.0008911/1.731, allocations: 257 kB / 0.8123 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02883/1.76, allocations: 13.51 MB / 0.8255 GB, free: 149.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/1.76, allocations: 3.875 kB / 0.8255 GB, free: 149.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005678/1.765, allocations: 3.541 MB / 0.8289 GB, free: 148.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00798/1.773, allocations: 1.304 MB / 0.8302 GB, free: 147.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04035/1.814, allocations: 20.99 MB / 0.8507 GB, free: 131.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009164/1.823, allocations: 7.606 MB / 0.8581 GB, free: 125.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007232/1.83, allocations: 2.355 MB / 0.8604 GB, free: 124.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001372/1.832, allocations: 430 kB / 0.8608 GB, free: 123.8 MB / 478.1 MB Notification: Performance of SimCode: time 9.02e-07/1.832, allocations: 0 / 0.8608 GB, free: 123.8 MB / 478.1 MB Notification: Performance of Templates: time 0.1229/1.955, allocations: 78.41 MB / 0.9374 GB, free: 48.81 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)