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.001306/0.001306, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001625/0.001625, allocations: 189.7 kB / 16.25 MB, free: 6.617 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.331/1.331, allocations: 205.1 MB / 222.1 MB, free: 4.746 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.001125/0.001125, allocations: 51.92 kB / 278.2 MB, free: 12.62 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.221, allocations: 46.63 MB / 324.9 MB, free: 2.199 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03943/0.2605, allocations: 39.28 MB / 364.2 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02366/0.2842, allocations: 10.38 MB / 374.5 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01031/0.2946, allocations: 251.1 kB / 374.8 MB, free: 2.145 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01925/0.3139, allocations: 8.023 MB / 382.8 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01304/0.327, allocations: 3.281 MB / 386.1 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007144/0.3341, allocations: 2.195 MB / 388.3 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01787/0.352, allocations: 13.44 MB / 401.7 MB, free: 7.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04429/0.3963, allocations: 28.68 MB / 430.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01054/0.4069, allocations: 7.031 MB / 437.4 MB, free: 3.227 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01248/0.4195, allocations: 8.129 MB / 445.6 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005407/0.4249, allocations: 1.988 MB / 447.5 MB, free: 9.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007234/0.4322, allocations: 2.386 MB / 449.9 MB, free: 6.695 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006491/0.4387, allocations: 4.162 MB / 454.1 MB, free: 2.523 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.3485/0.7873, allocations: 7.821 MB / 461.9 MB, free: 42.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02722/0.8145, allocations: 26.23 MB / 488.1 MB, free: 36.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.8146, allocations: 10.7 kB / 488.2 MB, free: 36.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.8146, allocations: 0 / 488.2 MB, free: 36.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0009162/0.8155, allocations: 0 / 488.2 MB, free: 36.39 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.04883/0.8644, allocations: 15.63 MB / 0.492 GB, free: 27.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.8644, allocations: 11.53 kB / 0.492 GB, free: 27.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04765/0.9121, allocations: 9.101 MB / 0.5009 GB, free: 23.27 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01411/0.9262, allocations: 7.444 MB / 0.5081 GB, free: 16.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006479/0.9269, allocations: 0.9518 MB / 0.5091 GB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004821/0.9317, allocations: 1.247 MB / 0.5103 GB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04677/0.9785, allocations: 20.15 MB / 0.53 GB, free: 10.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004987/0.9791, allocations: 23.8 kB / 0.53 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00501/0.9841, allocations: 0.515 MB / 0.5305 GB, free: 9.789 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008392/0.9849, allocations: 0.7294 MB / 0.5312 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04252/1.027, allocations: 18.98 MB / 0.5498 GB, free: 6.078 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1101/1.138, allocations: 63.4 MB / 0.6117 GB, free: 6.105 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1906/1.328, allocations: 56.97 MB / 0.6673 GB, free: 113.8 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006397/1.335, allocations: 4.116 MB / 0.6713 GB, free: 113.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01614/1.351, allocations: 11.4 MB / 0.6824 GB, free: 111.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/1.351, allocations: 71 kB / 0.6825 GB, free: 111.2 MB / 478.1 MB Notification: Performance of pre-optimization done (n=349): time 4.659e-06/1.351, allocations: 0 / 0.6825 GB, free: 111.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=389): time 0.0327/1.384, allocations: 18.14 MB / 0.7002 GB, free: 103.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/1.384, allocations: 93.94 kB / 0.7003 GB, free: 103.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006547/1.39, allocations: 5.457 MB / 0.7056 GB, free: 101.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004811/1.391, allocations: 89.7 kB / 0.7057 GB, free: 101.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002173/1.393, allocations: 5.883 MB / 0.7115 GB, free: 96.06 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009266/1.394, allocations: 1.377 MB / 0.7128 GB, free: 94.83 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001792/1.396, allocations: 1.508 MB / 0.7143 GB, free: 93.45 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.732e-05/1.396, allocations: 305.1 kB / 0.7146 GB, free: 93.14 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003539/1.399, allocations: 3.081 MB / 0.7176 GB, free: 90.55 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005657/1.405, allocations: 6.755 MB / 0.7242 GB, free: 82.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009936/1.415, allocations: 10.59 MB / 0.7345 GB, free: 70.45 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-05/1.415, allocations: 36 kB / 0.7346 GB, free: 70.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0148/1.43, allocations: 10.79 MB / 0.7451 GB, free: 59.55 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.554e-05/1.43, allocations: 63.98 kB / 0.7452 GB, free: 59.49 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001342/1.43, allocations: 124 kB / 0.7453 GB, free: 59.37 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002176/1.432, allocations: 0.9764 MB / 0.7462 GB, free: 58.38 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00563/1.438, allocations: 1.813 MB / 0.748 GB, free: 56.56 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009275/1.447, allocations: 10.25 MB / 0.758 GB, free: 45.89 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005832/1.453, allocations: 438.1 kB / 0.7584 GB, free: 45.46 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00097/1.454, allocations: 420 kB / 0.7588 GB, free: 45.05 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.008508/1.463, allocations: 4.461 MB / 0.7632 GB, free: 40.58 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00124/1.464, allocations: 0.544 MB / 0.7637 GB, free: 40.03 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00949/1.473, allocations: 6.519 MB / 0.7701 GB, free: 33.46 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.458e-05/1.473, allocations: 43.98 kB / 0.7701 GB, free: 33.42 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/1.473, allocations: 12 kB / 0.7701 GB, free: 33.41 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-05/1.473, allocations: 19.92 kB / 0.7702 GB, free: 33.39 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02506/1.498, allocations: 15.95 MB / 0.7857 GB, free: 17.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.461e-05/1.499, allocations: 12.03 kB / 0.7858 GB, free: 17.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002975/1.501, allocations: 0.7567 MB / 0.7865 GB, free: 16.63 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/1.503, allocations: 0.7962 MB / 0.7873 GB, free: 15.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003201/1.504, allocations: 87.97 kB / 0.7874 GB, free: 15.73 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008002/1.512, allocations: 9.351 MB / 0.7965 GB, free: 5.973 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.512, allocations: 4.156 kB / 0.7965 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1944/1.706, allocations: 9.521 MB / 0.8058 GB, free: 151.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003391/1.71, allocations: 1.08 MB / 0.8068 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001222/1.711, allocations: 76.28 kB / 0.8069 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002711/1.714, allocations: 222.5 kB / 0.8071 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006489/1.714, allocations: 261.6 kB / 0.8074 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000275/1.715, allocations: 111.7 kB / 0.8075 GB, free: 151.4 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006502/1.721, allocations: 3.604 MB / 0.811 GB, free: 151.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.721, allocations: 0 / 0.811 GB, free: 151.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008865/1.73, allocations: 1.979 MB / 0.8129 GB, free: 151.3 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.000955/1.731, allocations: 257.8 kB / 0.8132 GB, free: 151.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02806/1.759, allocations: 13.52 MB / 0.8264 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.208e-06/1.759, allocations: 0 / 0.8264 GB, free: 149.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005286/1.764, allocations: 3.537 MB / 0.8298 GB, free: 148.1 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00696/1.771, allocations: 1.309 MB / 0.8311 GB, free: 147.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03624/1.808, allocations: 26.22 MB / 0.8567 GB, free: 128.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007703/1.815, allocations: 7.606 MB / 0.8642 GB, free: 122.3 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006476/1.822, allocations: 2.353 MB / 0.8665 GB, free: 120.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001262/1.823, allocations: 433.7 kB / 0.8669 GB, free: 120.3 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/1.823, allocations: 0 / 0.8669 GB, free: 120.3 MB / 478.1 MB Notification: Performance of Templates: time 0.1131/1.936, allocations: 78.44 MB / 0.9435 GB, free: 45.52 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)