Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009/0.0009001, allocations: 98.27 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.00721/0.00721, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.533/1.533, 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.0004702/0.00047, allocations: 12 kB / 279.5 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2378, allocations: 47.59 MB / 327 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02093/0.2587, allocations: 22.78 MB / 349.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01533/0.2741, allocations: 6.966 MB / 356.8 MB, free: 5.562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005896/0.28, allocations: 123.5 kB / 356.9 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005704/0.2858, allocations: 1.337 MB / 358.2 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01116/0.297, allocations: 2.059 MB / 360.3 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005014/0.302, allocations: 1.318 MB / 361.6 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01157/0.3136, allocations: 7.769 MB / 369.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008837/0.3225, allocations: 4.515 MB / 373.9 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004601/0.3271, allocations: 2.318 MB / 376.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005687/0.3328, allocations: 3.158 MB / 379.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002745/0.3356, allocations: 364 kB / 379.7 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003579/0.3392, allocations: 0.8039 MB / 380.5 MB, free: 13.65 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002806/0.342, allocations: 1.522 MB / 382.1 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007545/0.3496, allocations: 3.126 MB / 385.2 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01672/0.3663, allocations: 10.73 MB / 395.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.3664, allocations: 0 / 395.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.3664, allocations: 4 kB / 395.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004858/0.3669, allocations: 0 / 395.9 MB, free: 14.21 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01723/0.3842, allocations: 6.238 MB / 402.2 MB, free: 7.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.3842, allocations: 8.031 kB / 402.2 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00721/0.3914, allocations: 1.231 MB / 403.4 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008919/0.4004, allocations: 3.694 MB / 407.1 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004943/0.4009, allocations: 436 kB / 407.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001678/0.4026, allocations: 0.57 MB / 408.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.42, allocations: 7.307 MB / 415.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001734/0.4202, allocations: 11.84 kB / 415.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000959/0.4212, allocations: 236 kB / 415.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003079/0.4215, allocations: 263.3 kB / 415.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01505/0.4365, allocations: 6.177 MB / 422.1 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04846/0.485, allocations: 23.95 MB / 446 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009898/0.495, allocations: 8.759 MB / 454.8 MB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.186/0.681, allocations: 2.399 MB / 457.2 MB, free: 104.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01131/0.6924, allocations: 7.044 MB / 464.2 MB, free: 101.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.6924, allocations: 64.31 kB / 464.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.849e-06/0.6925, allocations: 0 / 464.3 MB, free: 101.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03059/0.7231, allocations: 14.56 MB / 478.8 MB, free: 95.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.7231, allocations: 80.59 kB / 478.9 MB, free: 95.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005034/0.7282, allocations: 3.482 MB / 482.4 MB, free: 92.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003718/0.7286, allocations: 70.88 kB / 482.5 MB, free: 92.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001474/0.73, allocations: 2.688 MB / 485.2 MB, free: 89.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007746/0.7308, allocations: 0.9621 MB / 486.1 MB, free: 88.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003283/0.7312, allocations: 285.6 kB / 486.4 MB, free: 88.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.937e-05/0.7312, allocations: 305.1 kB / 486.7 MB, free: 88.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002338/0.7336, allocations: 1.592 MB / 488.3 MB, free: 86.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002686/0.7363, allocations: 2.805 MB / 491.1 MB, free: 83.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005369/0.7417, allocations: 4.692 MB / 495.8 MB, free: 78.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.533e-05/0.7417, allocations: 12 kB / 495.8 MB, free: 78.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008415/0.7501, allocations: 5.586 MB / 0.4896 GB, free: 72.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.7502, allocations: 25.42 kB / 0.4897 GB, free: 72.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-05/0.7502, allocations: 40.06 kB / 0.4897 GB, free: 72.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.7517, allocations: 0.6823 MB / 0.4904 GB, free: 71.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002965/0.7547, allocations: 0.8853 MB / 0.4912 GB, free: 70.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007577/0.7623, allocations: 9.607 MB / 0.5006 GB, free: 60.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003347/0.7656, allocations: 235.6 kB / 0.5008 GB, free: 60.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003355/0.766, allocations: 168 kB / 0.501 GB, free: 60.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (429): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(3,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002544/0.7685, allocations: 1.619 MB / 0.5026 GB, free: 58.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007188/0.7693, allocations: 387.3 kB / 0.5029 GB, free: 58.24 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006787/0.7761, allocations: 4.621 MB / 0.5075 GB, free: 53.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.57e-05/0.7761, allocations: 39.92 kB / 0.5075 GB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.7761, allocations: 8 kB / 0.5075 GB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.13e-05/0.7762, allocations: 11.95 kB / 0.5075 GB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/0.7899, allocations: 10.1 MB / 0.5174 GB, free: 43.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/0.7899, allocations: 4.656 kB / 0.5174 GB, free: 43.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002056/0.792, allocations: 0.5227 MB / 0.5179 GB, free: 42.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001744/0.7938, allocations: 0.7502 MB / 0.5186 GB, free: 41.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001895/0.794, allocations: 69.61 kB / 0.5187 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009705/0.8037, allocations: 13.05 MB / 0.5314 GB, free: 27.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.8037, allocations: 11.94 kB / 0.5314 GB, free: 27.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009701/0.8134, allocations: 6.771 MB / 0.538 GB, free: 20.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001849/0.8153, allocations: 0.7813 MB / 0.5388 GB, free: 20.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007046/0.816, allocations: 72.62 kB / 0.5389 GB, free: 20.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002097/0.8181, allocations: 188.8 kB / 0.5391 GB, free: 19.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004133/0.8186, allocations: 209.8 kB / 0.5393 GB, free: 19.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.8187, allocations: 79.97 kB / 0.5393 GB, free: 19.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003213/0.8219, allocations: 2.357 MB / 0.5416 GB, free: 17.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.822, allocations: 0 / 0.5416 GB, free: 17.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003842/0.8258, allocations: 1.113 MB / 0.5427 GB, free: 16.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005991/0.8264, allocations: 276.2 kB / 0.543 GB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006902/0.8333, allocations: 4.78 MB / 0.5477 GB, free: 10.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.8334, allocations: 4 kB / 0.5477 GB, free: 10.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003936/0.8373, allocations: 2.89 MB / 0.5505 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006775/0.8441, allocations: 0.8591 MB / 0.5513 GB, free: 7.121 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01834/0.8625, allocations: 13.15 MB / 0.5642 GB, free: 9.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004106/0.8666, allocations: 3.499 MB / 0.5676 GB, free: 6.324 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003557/0.8702, allocations: 0.8638 MB / 0.5684 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007922/0.871, allocations: 255.4 kB / 0.5687 GB, free: 5.203 MB / 398.1 MB Notification: Performance of SimCode: time 1.292e-06/0.871, allocations: 0 / 0.5687 GB, free: 5.203 MB / 398.1 MB Notification: Performance of Templates: time 0.2854/1.156, allocations: 51.84 MB / 0.6193 GB, free: 120.3 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)