Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008577/0.0008575, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005412/0.005412, allocations: 170.9 kB / 16.27 MB, free: 6.648 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.377/1.377, allocations: 205.4 MB / 222.4 MB, free: 5.805 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.000414/0.0004139, allocations: 12 kB / 279.5 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2066, allocations: 47.58 MB / 327.1 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.02718/0.2338, allocations: 28.56 MB / 355.6 MB, free: 6.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01619/0.2501, allocations: 8.489 MB / 364.1 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005956/0.2561, allocations: 159.5 kB / 364.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005719/0.2618, allocations: 1.563 MB / 365.8 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009579/0.2714, allocations: 2.683 MB / 368.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005014/0.2765, allocations: 1.392 MB / 369.9 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.2897, allocations: 8.967 MB / 378.9 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02075/0.3105, allocations: 12.02 MB / 390.9 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005168/0.3157, allocations: 3.058 MB / 393.9 MB, free: 204 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006237/0.322, allocations: 3.796 MB / 397.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001946/0.324, allocations: 480 kB / 398.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003363/0.3274, allocations: 0.8277 MB / 399 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.3295, allocations: 1.588 MB / 400.6 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006091/0.3356, allocations: 3.792 MB / 404.4 MB, free: 5.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01623/0.3518, allocations: 14.78 MB / 419.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3519, allocations: 3.938 kB / 419.2 MB, free: 6.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.888e-06/0.3519, allocations: 3.984 kB / 419.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003734/0.3523, allocations: 0 / 419.2 MB, free: 6.844 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.02304/0.3753, allocations: 8.18 MB / 427.4 MB, free: 14.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/0.3754, allocations: 8.031 kB / 427.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02862/0.404, allocations: 5.278 MB / 432.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009298/0.4133, allocations: 4.664 MB / 437.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004081/0.4138, allocations: 0.5339 MB / 437.9 MB, free: 3.988 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001749/0.4155, allocations: 0.7069 MB / 438.6 MB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02239/0.4379, allocations: 11.32 MB / 449.9 MB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001857/0.4381, allocations: 11.81 kB / 449.9 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009168/0.4391, allocations: 300 kB / 450.2 MB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004333/0.4395, allocations: 451 kB / 450.6 MB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1844/0.624, allocations: 10.81 MB / 461.4 MB, free: 98.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04419/0.6682, allocations: 38.11 MB / 499.5 MB, free: 71.51 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0126/0.6808, allocations: 28.09 MB / 0.5153 GB, free: 39.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00321/0.6841, allocations: 2.651 MB / 0.5179 GB, free: 36.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.6941, allocations: 7.945 MB / 0.5256 GB, free: 28.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.6942, allocations: 60.5 kB / 0.5257 GB, free: 28.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.238e-06/0.6942, allocations: 4 kB / 0.5257 GB, free: 28.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=233): time 0.01756/0.7118, allocations: 10.37 MB / 0.5358 GB, free: 18.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001524/0.7133, allocations: 1.908 MB / 0.5377 GB, free: 16.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/0.7179, allocations: 3.822 MB / 0.5414 GB, free: 12.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003372/0.7183, allocations: 61.7 kB / 0.5415 GB, free: 12.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001397/0.7197, allocations: 3.552 MB / 0.5449 GB, free: 8.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005325/0.7202, allocations: 0.8275 MB / 0.5457 GB, free: 8.137 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003892/0.7206, allocations: 388.4 kB / 0.5461 GB, free: 7.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.461e-05/0.7206, allocations: 305.2 kB / 0.5464 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00219/0.7228, allocations: 1.891 MB / 0.5482 GB, free: 5.551 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002966/0.7258, allocations: 4.393 MB / 0.5525 GB, free: 15.92 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007674/0.7335, allocations: 6.783 MB / 0.5592 GB, free: 7.926 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.914e-05/0.7336, allocations: 28 kB / 0.5592 GB, free: 7.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0113/0.7449, allocations: 6.983 MB / 0.566 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.589e-05/0.745, allocations: 40 kB / 0.566 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/0.7451, allocations: 88.88 kB / 0.5661 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001897/0.747, allocations: 0.7399 MB / 0.5669 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003519/0.7505, allocations: 1.123 MB / 0.568 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007003/0.7575, allocations: 5.244 MB / 0.5731 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003675/0.7612, allocations: 303.1 kB / 0.5734 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000554/0.7618, allocations: 280 kB / 0.5736 GB, free: 8.945 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004263/0.7661, allocations: 2.522 MB / 0.5761 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008313/0.7669, allocations: 391.1 kB / 0.5765 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007476/0.7744, allocations: 4.271 MB / 0.5806 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/0.7744, allocations: 24 kB / 0.5807 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/0.7744, allocations: 8 kB / 0.5807 GB, free: 1.699 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.213e-05/0.7745, allocations: 15.95 kB / 0.5807 GB, free: 1.684 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02209/0.7966, allocations: 14.28 MB / 0.5946 GB, free: 3.207 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.92e-05/0.7966, allocations: 12 kB / 0.5946 GB, free: 3.195 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001862/0.7985, allocations: 484 kB / 0.5951 GB, free: 2.723 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00206/0.8006, allocations: 0.6893 MB / 0.5958 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001928/0.8008, allocations: 67.98 kB / 0.5958 GB, free: 1.957 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00874/0.8095, allocations: 6.951 MB / 0.6026 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001671/0.8112, allocations: 1.862 MB / 0.6044 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0102/0.8214, allocations: 6.737 MB / 0.611 GB, free: 1.715 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001886/0.8233, allocations: 0.8006 MB / 0.6118 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005648/0.8239, allocations: 59.98 kB / 0.6119 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001798/0.8257, allocations: 175.8 kB / 0.612 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004388/0.8262, allocations: 217.5 kB / 0.6122 GB, free: 456 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001679/0.8264, allocations: 87.98 kB / 0.6123 GB, free: 368 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.1762/1.003, allocations: 2.513 MB / 0.6148 GB, free: 148.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.71e-07/1.003, allocations: 0 / 0.6148 GB, free: 148.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005374/1.008, allocations: 1.285 MB / 0.616 GB, free: 148.5 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005736/1.009, allocations: 225.7 kB / 0.6163 GB, free: 148.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006797/1.015, allocations: 5.152 MB / 0.6213 GB, free: 147.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/1.015, allocations: 0 / 0.6213 GB, free: 147.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003078/1.018, allocations: 2.405 MB / 0.6236 GB, free: 146 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009822/1.028, allocations: 0.9393 MB / 0.6245 GB, free: 145.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01935/1.048, allocations: 15.49 MB / 0.6397 GB, free: 136.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004119/1.052, allocations: 4.496 MB / 0.6441 GB, free: 135.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004041/1.056, allocations: 1.357 MB / 0.6454 GB, free: 134.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007687/1.057, allocations: 299.8 kB / 0.6457 GB, free: 134 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/1.057, allocations: 0 / 0.6457 GB, free: 134 MB / 446.1 MB Notification: Performance of Templates: time 0.08236/1.139, allocations: 54.02 MB / 0.6984 GB, free: 81.98 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile (rm -f Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & ./Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)