Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 108.9 kB / 16.92 MB, free: 5.707 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.001241/0.001241, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.344/1.344, allocations: 205.1 MB / 223.7 MB, free: 12.32 MB / 190.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.001288/0.001288, allocations: 51.92 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.09828, allocations: 46.63 MB / 326.6 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0168/0.1151, allocations: 15.12 MB / 341.8 MB, free: 5.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.1264, allocations: 5.109 MB / 346.9 MB, free: 148 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003227/0.1297, allocations: 87.62 kB / 346.9 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003397/0.1331, allocations: 1.056 MB / 348 MB, free: 15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00512/0.1383, allocations: 1.258 MB / 349.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002486/0.1408, allocations: 0.904 MB / 350.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0051/0.1459, allocations: 3.604 MB / 353.8 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004055/0.1499, allocations: 3.258 MB / 357 MB, free: 5.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003368/0.1533, allocations: 1.709 MB / 358.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003228/0.1566, allocations: 2.047 MB / 360.8 MB, free: 2.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000696/0.1573, allocations: 480 kB / 361.3 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001686/0.159, allocations: 0.6911 MB / 361.9 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001038/0.16, allocations: 1.134 MB / 363.1 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002293/0.1623, allocations: 2.042 MB / 365.1 MB, free: 13.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007087/0.1694, allocations: 6.196 MB / 371.3 MB, free: 7.547 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1695, allocations: 0 / 371.3 MB, free: 7.547 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1695, allocations: 0 / 371.3 MB, free: 7.547 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001868/0.1697, allocations: 0 / 371.3 MB, free: 7.547 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01206/0.1817, allocations: 4.23 MB / 375.5 MB, free: 3.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.1818, allocations: 15.89 kB / 375.6 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002898/0.1847, allocations: 0.625 MB / 376.2 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004284/0.189, allocations: 2.121 MB / 378.3 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002255/0.1893, allocations: 238.8 kB / 378.5 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.1704/0.3597, allocations: 311.9 kB / 378.8 MB, free: 50.06 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/0.3708, allocations: 4.039 MB / 382.9 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.371, allocations: 8.969 kB / 382.9 MB, free: 48.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008187/0.3718, allocations: 125.7 kB / 383 MB, free: 48.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000225/0.3721, allocations: 148.1 kB / 383.2 MB, free: 48.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007243/0.3793, allocations: 3.378 MB / 386.5 MB, free: 47.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02026/0.3996, allocations: 13.33 MB / 399.9 MB, free: 38.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003518/0.4032, allocations: 3.96 MB / 403.8 MB, free: 34.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.4046, allocations: 0.9989 MB / 404.8 MB, free: 34.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004103/0.4088, allocations: 2.678 MB / 407.5 MB, free: 32.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.4088, allocations: 43.44 kB / 407.5 MB, free: 32.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.986e-06/0.4088, allocations: 0 / 407.5 MB, free: 32.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01058/0.4194, allocations: 5.999 MB / 413.5 MB, free: 26.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.4195, allocations: 64.72 kB / 413.6 MB, free: 26.59 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003214/0.4227, allocations: 1.889 MB / 415.5 MB, free: 24.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.836e-05/0.4228, allocations: 45.7 kB / 415.5 MB, free: 24.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000744/0.4236, allocations: 1.504 MB / 417 MB, free: 23.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000267/0.4239, allocations: 492.7 kB / 417.5 MB, free: 22.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004404/0.4243, allocations: 339.8 kB / 417.9 MB, free: 22.28 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.455e-05/0.4244, allocations: 305.1 kB / 418.2 MB, free: 21.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009281/0.4253, allocations: 0.7652 MB / 418.9 MB, free: 21.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/0.4265, allocations: 1.371 MB / 420.3 MB, free: 19.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002228/0.4287, allocations: 2.315 MB / 422.6 MB, free: 16.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.4287, allocations: 4.875 kB / 422.6 MB, free: 16.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00329/0.432, allocations: 2.473 MB / 425.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.432, allocations: 19.94 kB / 425.1 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.968e-05/0.4321, allocations: 23.98 kB / 425.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003025/0.4324, allocations: 118.9 kB / 425.2 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/0.434, allocations: 491.2 kB / 425.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007676/0.4348, allocations: 1.406 MB / 427.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/0.4362, allocations: 115.8 kB / 427.2 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.4363, allocations: 86.66 kB / 427.3 MB, free: 12.11 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001516/0.4378, allocations: 0.985 MB / 428.3 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/0.4381, allocations: 205.5 kB / 428.5 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002922/0.441, allocations: 1.961 MB / 430.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.395e-06/0.4411, allocations: 12 kB / 430.5 MB, free: 8.914 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.4411, allocations: 4 kB / 430.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/0.4411, allocations: 7.969 kB / 430.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006184/0.4473, allocations: 4.994 MB / 435.5 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.4473, allocations: 0 / 435.5 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/0.4485, allocations: 327.5 kB / 435.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002382/0.4488, allocations: 90.78 kB / 435.9 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.812e-05/0.4488, allocations: 31.98 kB / 435.9 MB, free: 3.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000588/0.4494, allocations: 1.371 MB / 437.3 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4495, allocations: 7.828 kB / 437.3 MB, free: 1.867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003829/0.4533, allocations: 3.087 MB / 440.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000902/0.4542, allocations: 454.5 kB / 440.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002669/0.4545, allocations: 24 kB / 440.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009562/0.4554, allocations: 83.89 kB / 440.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.4556, allocations: 86.52 kB / 441 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-05/0.4557, allocations: 43.98 kB / 441.1 MB, free: 14.03 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001971/0.4577, allocations: 1.289 MB / 442.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4577, allocations: 0 / 442.4 MB, free: 12.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002016/0.4597, allocations: 0.5322 MB / 442.9 MB, free: 12.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * 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 {(1,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.0003209/0.4601, allocations: 161 kB / 443.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005296/0.4654, allocations: 2.832 MB / 445.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.4654, allocations: 0 / 445.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001486/0.4669, allocations: 1.179 MB / 447.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.4691, allocations: 0.5116 MB / 447.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00915/0.4783, allocations: 5.65 MB / 453.2 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001842/0.4802, allocations: 2.259 MB / 455.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001767/0.4819, allocations: 0.5092 MB / 456 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/0.4824, allocations: 151.4 kB / 456.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4824, allocations: 4 kB / 456.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of Templates: time 0.0509/0.5333, allocations: 26.03 MB / 482.2 MB, free: 4.727 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)