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.001133/0.001133, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001377/0.001376, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.492/1.492, allocations: 205.4 MB / 223.4 MB, free: 5.543 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.0004482/0.0004482, allocations: 12 kB / 280.1 MB, free: 12.78 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2564, allocations: 47.59 MB / 327.7 MB, free: 1.637 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01531/0.2718, allocations: 13.27 MB / 341 MB, free: 6.344 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.2829, allocations: 4.754 MB / 345.8 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004133/0.287, allocations: 87.62 kB / 345.8 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005588/0.2927, allocations: 0.8078 MB / 346.7 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006453/0.2992, allocations: 1.026 MB / 347.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003116/0.3023, allocations: 0.6275 MB / 348.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007335/0.3096, allocations: 3.507 MB / 351.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005734/0.3154, allocations: 2.271 MB / 354.1 MB, free: 9.176 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003611/0.319, allocations: 1.198 MB / 355.3 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004063/0.3231, allocations: 1.579 MB / 356.9 MB, free: 6.387 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000969/0.3241, allocations: 196 kB / 357.1 MB, free: 6.195 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002395/0.3265, allocations: 391.8 kB / 357.4 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001641/0.3282, allocations: 0.7902 MB / 358.2 MB, free: 5.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001868/0.3301, allocations: 0.6991 MB / 358.9 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008367/0.3385, allocations: 5.064 MB / 364 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3385, allocations: 0 / 364 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3385, allocations: 3.938 kB / 364 MB, free: 15.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002249/0.3388, allocations: 0 / 364 MB, free: 15.23 MB / 302.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.01121/0.35, allocations: 3.614 MB / 367.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.35, allocations: 8.031 kB / 367.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003311/0.3534, allocations: 0.6241 MB / 368.2 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004267/0.3576, allocations: 2.035 MB / 370.3 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/0.3579, allocations: 250.2 kB / 370.5 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007857/0.3587, allocations: 315.9 kB / 370.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008712/0.3675, allocations: 4.015 MB / 374.8 MB, free: 4.184 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.43e-05/0.3676, allocations: 4 kB / 374.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003592/0.3679, allocations: 124 kB / 375 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001642/0.3681, allocations: 158.1 kB / 375.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006424/0.3745, allocations: 3.354 MB / 378.5 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01979/0.3943, allocations: 13.37 MB / 391.8 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004224/0.3986, allocations: 3.959 MB / 395.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.4003, allocations: 1.004 MB / 396.8 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004416/0.4047, allocations: 2.673 MB / 399.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.4047, allocations: 47.55 kB / 399.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.326e-06/0.4048, allocations: 0 / 399.5 MB, free: 10.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01154/0.4163, allocations: 5.987 MB / 405.5 MB, free: 4.344 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.4164, allocations: 68.72 kB / 405.6 MB, free: 4.266 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002757/0.4192, allocations: 1.877 MB / 407.5 MB, free: 2.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.846e-05/0.4193, allocations: 45.7 kB / 407.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.4204, allocations: 1.505 MB / 409 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004058/0.4208, allocations: 496.9 kB / 409.5 MB, free: 284 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.421, allocations: 36 kB / 409.5 MB, free: 248 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.4212, allocations: 385.8 kB / 409.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.4224, allocations: 0.7691 MB / 410.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001631/0.424, allocations: 1.367 MB / 412 MB, free: 13.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.4256, allocations: 1.006 MB / 413.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.076e-05/0.4256, allocations: 8 kB / 413.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003938/0.4295, allocations: 2.458 MB / 415.5 MB, free: 9.965 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.4296, allocations: 12 kB / 415.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-05/0.4296, allocations: 24.55 kB / 415.6 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003695/0.43, allocations: 126.5 kB / 415.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001801/0.4318, allocations: 491.2 kB / 416.2 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001099/0.4329, allocations: 1.307 MB / 417.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001252/0.4342, allocations: 120 kB / 417.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.4343, allocations: 84 kB / 417.7 MB, free: 7.676 MB / 350.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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001815/0.4362, allocations: 0.9773 MB / 418.6 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003132/0.4365, allocations: 201.5 kB / 418.8 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003296/0.4398, allocations: 1.965 MB / 420.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.4398, allocations: 16 kB / 420.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.4398, allocations: 0 / 420.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/0.4398, allocations: 7.969 kB / 420.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007587/0.4474, allocations: 4.985 MB / 425.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.4475, allocations: 4 kB / 425.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00134/0.4488, allocations: 315.6 kB / 426.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000307/0.4491, allocations: 102.7 kB / 426.2 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.458e-05/0.4492, allocations: 27.98 kB / 426.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009819/0.4502, allocations: 1.288 MB / 427.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.4502, allocations: 0 / 427.5 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004733/0.455, allocations: 3.077 MB / 430.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008297/0.4558, allocations: 458.5 kB / 431.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000236/0.4561, allocations: 27.98 kB / 431.1 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008645/0.4569, allocations: 83.91 kB / 431.2 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.4571, allocations: 85.12 kB / 431.3 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.228e-05/0.4572, allocations: 48.02 kB / 431.3 MB, free: 9.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001982/0.4592, allocations: 1.266 MB / 432.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4592, allocations: 0 / 432.6 MB, free: 8.387 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001909/0.4611, allocations: 0.539 MB / 433.1 MB, free: 7.848 MB / 366.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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003286/0.4614, allocations: 163 kB / 433.3 MB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003428/0.4649, allocations: 2.196 MB / 435.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4649, allocations: 0 / 435.5 MB, free: 5.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001601/0.4665, allocations: 1.179 MB / 436.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/0.4686, allocations: 0.4945 MB / 437.1 MB, free: 3.695 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009965/0.4786, allocations: 6.731 MB / 443.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/0.4807, allocations: 2.263 MB / 446.1 MB, free: 10.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001799/0.4825, allocations: 0.5132 MB / 446.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004381/0.483, allocations: 155.3 kB / 446.8 MB, free: 9.941 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.483, allocations: 0 / 446.8 MB, free: 9.941 MB / 382.1 MB Notification: Performance of Templates: time 0.2148/0.6978, allocations: 24.15 MB / 470.9 MB, free: 104.9 MB / 382.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)